author | paulson |
Wed, 26 May 2004 11:43:50 +0200 | |
changeset 14803 | f7557773cc87 |
parent 14761 | 28b5eb4a867f |
child 14963 | d584e32f7d46 |
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$ |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
3 |
Author: Florian Kammueller, with new proofs by L C Paulson |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
4 |
*) |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
5 |
|
14747 | 6 |
header{*Cosets and Quotient Groups*} |
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
7 |
|
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
8 |
theory Coset = Group + Exponent: |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
9 |
|
14666 | 10 |
declare (in group) l_inv [simp] and r_inv [simp] |
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
11 |
|
14651 | 12 |
constdefs (structure G) |
14747 | 13 |
r_coset :: "[_, 'a set, 'a] => 'a set" (infixl "#>\<index>" 60) |
14 |
"H #> a == (% x. x \<otimes> a) ` H" |
|
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
15 |
|
14747 | 16 |
l_coset :: "[_, 'a, 'a set] => 'a set" (infixl "<#\<index>" 60) |
17 |
"a <# H == (% x. a \<otimes> x) ` H" |
|
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
18 |
|
14651 | 19 |
rcosets :: "[_, 'a set] => ('a set)set" |
14666 | 20 |
"rcosets G H == r_coset G H ` (carrier G)" |
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
21 |
|
14747 | 22 |
set_mult :: "[_, 'a set ,'a set] => 'a set" (infixl "<#>\<index>" 60) |
23 |
"H <#> K == (%(x,y). x \<otimes> y) ` (H \<times> K)" |
|
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
24 |
|
14651 | 25 |
set_inv :: "[_,'a set] => 'a set" |
14666 | 26 |
"set_inv G H == m_inv G ` H" |
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
27 |
|
14651 | 28 |
normal :: "['a set, _] => bool" (infixl "<|" 60) |
14666 | 29 |
"normal H G == subgroup H G & |
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
30 |
(\<forall>x \<in> carrier G. r_coset G H x = l_coset G x H)" |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
31 |
|
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
32 |
syntax (xsymbols) |
14747 | 33 |
normal :: "['a set, ('a,'b) monoid_scheme] => bool" (infixl "\<lhd>" 60) |
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
34 |
|
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
35 |
|
14803 | 36 |
subsection {*Basic Properties of Cosets*} |
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
37 |
|
14747 | 38 |
lemma (in group) r_coset_eq: "H #> a = {b . \<exists>h\<in>H. h \<otimes> a = b}" |
39 |
by (auto simp add: r_coset_def) |
|
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
40 |
|
14747 | 41 |
lemma (in group) l_coset_eq: "a <# H = {b . \<exists>h\<in>H. a \<otimes> h = b}" |
42 |
by (auto simp add: l_coset_def) |
|
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
43 |
|
14747 | 44 |
lemma (in group) setrcos_eq: "rcosets G H = {C . \<exists>a\<in>carrier G. C = H #> a}" |
45 |
by (auto simp add: rcosets_def) |
|
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
46 |
|
14747 | 47 |
lemma (in group) set_mult_eq: "H <#> K = {c . \<exists>h\<in>H. \<exists>k\<in>K. c = h \<otimes> k}" |
48 |
by (simp add: set_mult_def image_def) |
|
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
49 |
|
14747 | 50 |
lemma (in group) coset_mult_assoc: |
51 |
"[| 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
|
52 |
==> (M #> g) #> h = M #> (g \<otimes> h)" |
14747 | 53 |
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
|
54 |
|
14747 | 55 |
lemma (in group) coset_mult_one [simp]: "M \<subseteq> carrier G ==> M #> \<one> = M" |
56 |
by (force simp add: r_coset_def) |
|
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
57 |
|
14747 | 58 |
lemma (in group) coset_mult_inv1: |
14666 | 59 |
"[| M #> (x \<otimes> (inv y)) = M; x \<in> carrier G ; y \<in> carrier G; |
14747 | 60 |
M \<subseteq> carrier G |] ==> M #> x = M #> y" |
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
61 |
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
|
62 |
apply (simp add: coset_mult_assoc m_assoc) |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
63 |
done |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
64 |
|
14747 | 65 |
lemma (in group) coset_mult_inv2: |
66 |
"[| 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
|
67 |
==> M #> (x \<otimes> (inv y)) = M " |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
68 |
apply (simp add: coset_mult_assoc [symmetric]) |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
69 |
apply (simp add: coset_mult_assoc) |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
70 |
done |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
71 |
|
14747 | 72 |
lemma (in group) coset_join1: |
73 |
"[| 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
|
74 |
apply (erule subst) |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
75 |
apply (simp add: r_coset_eq) |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
76 |
apply (blast intro: l_one subgroup.one_closed) |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
77 |
done |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
78 |
|
14747 | 79 |
lemma (in group) solve_equation: |
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
80 |
"\<lbrakk>subgroup H G; x \<in> H; y \<in> H\<rbrakk> \<Longrightarrow> \<exists>h\<in>H. h \<otimes> x = y" |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
81 |
apply (rule bexI [of _ "y \<otimes> (inv x)"]) |
14666 | 82 |
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
|
83 |
subgroup.subset [THEN subsetD]) |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
84 |
done |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
85 |
|
14747 | 86 |
lemma (in group) coset_join2: |
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
87 |
"[| x \<in> carrier G; subgroup H G; x\<in>H |] ==> H #> x = H" |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
88 |
by (force simp add: subgroup.m_closed r_coset_eq solve_equation) |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
89 |
|
14747 | 90 |
lemma (in group) r_coset_subset_G: |
91 |
"[| H \<subseteq> carrier G; x \<in> carrier G |] ==> H #> x \<subseteq> carrier G" |
|
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 |
|
14747 | 94 |
lemma (in group) rcosI: |
95 |
"[| h \<in> H; H \<subseteq> carrier G; x \<in> carrier G|] ==> h \<otimes> x \<in> H #> x" |
|
96 |
by (auto simp add: r_coset_def) |
|
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
97 |
|
14747 | 98 |
lemma (in group) setrcosI: |
99 |
"[| H \<subseteq> carrier G; x \<in> carrier G |] ==> H #> x \<in> rcosets G H" |
|
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
100 |
by (auto simp add: setrcos_eq) |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
101 |
|
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
102 |
|
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
103 |
text{*Really needed?*} |
14747 | 104 |
lemma (in group) transpose_inv: |
14666 | 105 |
"[| 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
|
106 |
==> (inv x) \<otimes> z = y" |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
107 |
by (force simp add: m_assoc [symmetric]) |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
108 |
|
14747 | 109 |
lemma (in group) repr_independence: |
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
110 |
"[| y \<in> H #> x; x \<in> carrier G; subgroup H G |] ==> H #> x = H #> y" |
14666 | 111 |
by (auto simp add: r_coset_eq m_assoc [symmetric] |
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
112 |
subgroup.subset [THEN subsetD] |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
113 |
subgroup.m_closed solve_equation) |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
114 |
|
14747 | 115 |
lemma (in group) rcos_self: "[| x \<in> carrier G; subgroup H G |] ==> x \<in> H #> x" |
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
116 |
apply (simp add: r_coset_eq) |
14666 | 117 |
apply (blast intro: l_one subgroup.subset [THEN subsetD] |
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
118 |
subgroup.one_closed) |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
119 |
done |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
120 |
|
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
121 |
|
14666 | 122 |
subsection {* Normal subgroups *} |
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
123 |
|
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
124 |
lemma normal_imp_subgroup: "H <| G ==> subgroup H G" |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
125 |
by (simp add: normal_def) |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
126 |
|
14747 | 127 |
lemma (in group) normal_inv_op_closed1: |
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
128 |
"\<lbrakk>H \<lhd> G; x \<in> carrier G; h \<in> H\<rbrakk> \<Longrightarrow> (inv x) \<otimes> h \<otimes> x \<in> H" |
14747 | 129 |
apply (auto simp add: l_coset_def r_coset_def normal_def) |
14666 | 130 |
apply (drule bspec, assumption) |
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
131 |
apply (drule equalityD1 [THEN subsetD], blast, clarify) |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
132 |
apply (simp add: m_assoc subgroup.subset [THEN subsetD]) |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
133 |
apply (simp add: m_assoc [symmetric] subgroup.subset [THEN subsetD]) |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
134 |
done |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
135 |
|
14747 | 136 |
lemma (in group) normal_inv_op_closed2: |
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
137 |
"\<lbrakk>H \<lhd> G; x \<in> carrier G; h \<in> H\<rbrakk> \<Longrightarrow> x \<otimes> h \<otimes> (inv x) \<in> H" |
14666 | 138 |
apply (drule normal_inv_op_closed1 [of H "(inv x)"]) |
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
139 |
apply auto |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
140 |
done |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
141 |
|
14747 | 142 |
text{*Alternative characterization of normal subgroups*} |
143 |
lemma (in group) normal_inv_iff: |
|
144 |
"(N \<lhd> G) = |
|
145 |
(subgroup N G & (\<forall>x \<in> carrier G. \<forall>h \<in> N. x \<otimes> h \<otimes> (inv x) \<in> N))" |
|
146 |
(is "_ = ?rhs") |
|
147 |
proof |
|
148 |
assume N: "N \<lhd> G" |
|
149 |
show ?rhs |
|
150 |
by (blast intro: N normal_imp_subgroup normal_inv_op_closed2) |
|
151 |
next |
|
152 |
assume ?rhs |
|
153 |
hence sg: "subgroup N G" |
|
154 |
and closed: "!!x. x\<in>carrier G ==> \<forall>h\<in>N. x \<otimes> h \<otimes> inv x \<in> N" by auto |
|
155 |
hence sb: "N \<subseteq> carrier G" by (simp add: subgroup.subset) |
|
156 |
show "N \<lhd> G" |
|
157 |
proof (simp add: sg normal_def l_coset_def r_coset_def, clarify) |
|
158 |
fix x |
|
159 |
assume x: "x \<in> carrier G" |
|
160 |
show "(\<lambda>n. n \<otimes> x) ` N = op \<otimes> x ` N" |
|
161 |
proof |
|
162 |
show "(\<lambda>n. n \<otimes> x) ` N \<subseteq> op \<otimes> x ` N" |
|
163 |
proof clarify |
|
164 |
fix n |
|
165 |
assume n: "n \<in> N" |
|
166 |
show "n \<otimes> x \<in> op \<otimes> x ` N" |
|
167 |
proof |
|
168 |
show "n \<otimes> x = x \<otimes> (inv x \<otimes> n \<otimes> x)" |
|
169 |
by (simp add: x n m_assoc [symmetric] sb [THEN subsetD]) |
|
170 |
with closed [of "inv x"] |
|
171 |
show "inv x \<otimes> n \<otimes> x \<in> N" by (simp add: x n) |
|
172 |
qed |
|
173 |
qed |
|
174 |
next |
|
175 |
show "op \<otimes> x ` N \<subseteq> (\<lambda>n. n \<otimes> x) ` N" |
|
176 |
proof clarify |
|
177 |
fix n |
|
178 |
assume n: "n \<in> N" |
|
179 |
show "x \<otimes> n \<in> (\<lambda>n. n \<otimes> x) ` N" |
|
180 |
proof |
|
181 |
show "x \<otimes> n = (x \<otimes> n \<otimes> inv x) \<otimes> x" |
|
182 |
by (simp add: x n m_assoc sb [THEN subsetD]) |
|
183 |
show "x \<otimes> n \<otimes> inv x \<in> N" by (simp add: x n closed) |
|
184 |
qed |
|
185 |
qed |
|
186 |
qed |
|
187 |
qed |
|
188 |
qed |
|
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
189 |
|
14803 | 190 |
subsection{*More Properties of Cosets*} |
191 |
||
14747 | 192 |
lemma (in group) lcos_m_assoc: |
193 |
"[| M \<subseteq> carrier G; g \<in> carrier G; h \<in> carrier G |] |
|
194 |
==> g <# (h <# M) = (g \<otimes> h) <# M" |
|
195 |
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
|
196 |
|
14747 | 197 |
lemma (in group) lcos_mult_one: "M \<subseteq> carrier G ==> \<one> <# M = M" |
198 |
by (force simp add: l_coset_def) |
|
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
199 |
|
14747 | 200 |
lemma (in group) l_coset_subset_G: |
201 |
"[| H \<subseteq> carrier G; x \<in> carrier G |] ==> x <# H \<subseteq> carrier G" |
|
202 |
by (auto simp add: l_coset_def subsetD) |
|
203 |
||
204 |
lemma (in group) l_coset_swap: |
|
14530 | 205 |
"[| y \<in> x <# H; x \<in> carrier G; subgroup H G |] ==> x \<in> y <# H" |
206 |
proof (simp add: l_coset_eq) |
|
14666 | 207 |
assume "\<exists>h\<in>H. x \<otimes> h = y" |
208 |
and x: "x \<in> carrier G" |
|
14530 | 209 |
and sb: "subgroup H G" |
210 |
then obtain h' where h': "h' \<in> H & x \<otimes> h' = y" by blast |
|
211 |
show "\<exists>h\<in>H. y \<otimes> h = x" |
|
212 |
proof |
|
213 |
show "y \<otimes> inv h' = x" using h' x sb |
|
214 |
by (auto simp add: m_assoc subgroup.subset [THEN subsetD]) |
|
215 |
show "inv h' \<in> H" using h' sb |
|
216 |
by (auto simp add: subgroup.subset [THEN subsetD] subgroup.m_inv_closed) |
|
217 |
qed |
|
218 |
qed |
|
219 |
||
14747 | 220 |
lemma (in group) l_coset_carrier: |
14530 | 221 |
"[| y \<in> x <# H; x \<in> carrier G; subgroup H G |] ==> y \<in> carrier G" |
14747 | 222 |
by (auto simp add: l_coset_def m_assoc |
14530 | 223 |
subgroup.subset [THEN subsetD] subgroup.m_closed) |
224 |
||
14747 | 225 |
lemma (in group) l_repr_imp_subset: |
14666 | 226 |
assumes y: "y \<in> x <# H" and x: "x \<in> carrier G" and sb: "subgroup H G" |
14530 | 227 |
shows "y <# H \<subseteq> x <# H" |
228 |
proof - |
|
229 |
from y |
|
14747 | 230 |
obtain h' where "h' \<in> H" "x \<otimes> h' = y" by (auto simp add: l_coset_def) |
14530 | 231 |
thus ?thesis using x sb |
14747 | 232 |
by (auto simp add: l_coset_def m_assoc |
14530 | 233 |
subgroup.subset [THEN subsetD] subgroup.m_closed) |
234 |
qed |
|
235 |
||
14747 | 236 |
lemma (in group) l_repr_independence: |
14666 | 237 |
assumes y: "y \<in> x <# H" and x: "x \<in> carrier G" and sb: "subgroup H G" |
14530 | 238 |
shows "x <# H = y <# H" |
14666 | 239 |
proof |
14530 | 240 |
show "x <# H \<subseteq> y <# H" |
14666 | 241 |
by (rule l_repr_imp_subset, |
14530 | 242 |
(blast intro: l_coset_swap l_coset_carrier y x sb)+) |
14666 | 243 |
show "y <# H \<subseteq> x <# H" by (rule l_repr_imp_subset [OF y x sb]) |
14530 | 244 |
qed |
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
245 |
|
14747 | 246 |
lemma (in group) setmult_subset_G: |
247 |
"[| H \<subseteq> carrier G; K \<subseteq> carrier G |] ==> H <#> K \<subseteq> carrier G" |
|
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
248 |
by (auto simp add: set_mult_eq subsetD) |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
249 |
|
14747 | 250 |
lemma (in group) subgroup_mult_id: "subgroup H G ==> H <#> H = H" |
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
251 |
apply (auto simp add: subgroup.m_closed set_mult_eq Sigma_def image_def) |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
252 |
apply (rule_tac x = x in bexI) |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
253 |
apply (rule bexI [of _ "\<one>"]) |
14666 | 254 |
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
|
255 |
r_one subgroup.subset [THEN subsetD]) |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
256 |
done |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
257 |
|
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
258 |
|
14747 | 259 |
subsubsection {* Set of inverses of an @{text r_coset}. *} |
14666 | 260 |
|
14747 | 261 |
lemma (in group) rcos_inv: |
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
262 |
assumes normalHG: "H <| G" |
14747 | 263 |
and x: "x \<in> carrier G" |
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
264 |
shows "set_inv G (H #> x) = H #> (inv x)" |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
265 |
proof - |
14747 | 266 |
have H_subset: "H \<subseteq> carrier G" |
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
267 |
by (rule subgroup.subset [OF normal_imp_subgroup, OF normalHG]) |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
268 |
show ?thesis |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
269 |
proof (auto simp add: r_coset_eq image_def set_inv_def) |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
270 |
fix h |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
271 |
assume "h \<in> H" |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
272 |
hence "((inv x) \<otimes> (inv h) \<otimes> x) \<otimes> inv x = inv (h \<otimes> x)" |
14747 | 273 |
by (simp add: x m_assoc inv_mult_group H_subset [THEN subsetD]) |
14666 | 274 |
thus "\<exists>j\<in>H. j \<otimes> inv x = inv (h \<otimes> x)" |
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
275 |
using prems |
14666 | 276 |
by (blast intro: normal_inv_op_closed1 normal_imp_subgroup |
277 |
subgroup.m_inv_closed) |
|
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
278 |
next |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
279 |
fix h |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
280 |
assume "h \<in> H" |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
281 |
hence eq: "(x \<otimes> (inv h) \<otimes> (inv x)) \<otimes> x = x \<otimes> inv h" |
14747 | 282 |
by (simp add: x m_assoc H_subset [THEN subsetD]) |
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
283 |
hence "(\<exists>j\<in>H. j \<otimes> x = inv (h \<otimes> (inv x))) \<and> h \<otimes> inv x = inv (inv (h \<otimes> (inv x)))" |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
284 |
using prems |
14666 | 285 |
by (simp add: m_assoc inv_mult_group H_subset [THEN subsetD], |
286 |
blast intro: eq normal_inv_op_closed2 normal_imp_subgroup |
|
287 |
subgroup.m_inv_closed) |
|
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
288 |
thus "\<exists>y. (\<exists>h\<in>H. h \<otimes> x = y) \<and> h \<otimes> inv x = inv y" .. |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
289 |
qed |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
290 |
qed |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
291 |
|
14747 | 292 |
lemma (in group) rcos_inv2: |
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
293 |
"[| H <| G; K \<in> rcosets G H; x \<in> K |] ==> set_inv G K = H #> (inv x)" |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
294 |
apply (simp add: setrcos_eq, clarify) |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
295 |
apply (subgoal_tac "x : carrier G") |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
296 |
prefer 2 |
14666 | 297 |
apply (blast dest: r_coset_subset_G subgroup.subset normal_imp_subgroup) |
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
298 |
apply (drule repr_independence) |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
299 |
apply assumption |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
300 |
apply (erule normal_imp_subgroup) |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
301 |
apply (simp add: rcos_inv) |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
302 |
done |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
303 |
|
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
304 |
|
14803 | 305 |
subsubsection {*Theorems for @{text "<#>"} with @{text "#>"} or @{text "<#"}.*} |
14666 | 306 |
|
14747 | 307 |
lemma (in group) setmult_rcos_assoc: |
308 |
"[| H \<subseteq> carrier G; K \<subseteq> carrier G; x \<in> carrier G |] |
|
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
309 |
==> H <#> (K #> x) = (H <#> K) #> x" |
14747 | 310 |
apply (auto simp add: r_coset_def set_mult_def) |
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
311 |
apply (force simp add: m_assoc)+ |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
312 |
done |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
313 |
|
14747 | 314 |
lemma (in group) rcos_assoc_lcos: |
315 |
"[| H \<subseteq> carrier G; K \<subseteq> carrier G; x \<in> carrier G |] |
|
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
316 |
==> (H #> x) <#> K = H <#> (x <# K)" |
14747 | 317 |
apply (auto simp add: r_coset_def l_coset_def set_mult_def Sigma_def image_def) |
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
318 |
apply (force intro!: exI bexI simp add: m_assoc)+ |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
319 |
done |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
320 |
|
14747 | 321 |
lemma (in group) rcos_mult_step1: |
14666 | 322 |
"[| H <| G; x \<in> carrier G; y \<in> carrier G |] |
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
323 |
==> (H #> x) <#> (H #> y) = (H <#> (x <# H)) #> y" |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
324 |
by (simp add: setmult_rcos_assoc normal_imp_subgroup [THEN subgroup.subset] |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
325 |
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
|
326 |
|
14747 | 327 |
lemma (in group) rcos_mult_step2: |
14666 | 328 |
"[| H <| G; x \<in> carrier G; y \<in> carrier G |] |
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
329 |
==> (H <#> (x <# H)) #> y = (H <#> (H #> x)) #> y" |
14747 | 330 |
by (simp add: normal_def) |
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
331 |
|
14747 | 332 |
lemma (in group) rcos_mult_step3: |
14666 | 333 |
"[| H <| G; x \<in> carrier G; y \<in> carrier G |] |
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
334 |
==> (H <#> (H #> x)) #> y = H #> (x \<otimes> y)" |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
335 |
by (simp add: setmult_rcos_assoc r_coset_subset_G coset_mult_assoc |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
336 |
setmult_subset_G subgroup_mult_id |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
337 |
subgroup.subset normal_imp_subgroup) |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
338 |
|
14747 | 339 |
lemma (in group) rcos_sum: |
14666 | 340 |
"[| H <| G; x \<in> carrier G; y \<in> carrier G |] |
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
341 |
==> (H #> x) <#> (H #> y) = H #> (x \<otimes> y)" |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
342 |
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
|
343 |
|
14747 | 344 |
lemma (in group) setrcos_mult_eq: "[|H <| G; M \<in> rcosets G H|] ==> H <#> M = M" |
14666 | 345 |
-- {* generalizes @{text subgroup_mult_id} *} |
346 |
by (auto simp add: setrcos_eq normal_imp_subgroup subgroup.subset |
|
347 |
setmult_rcos_assoc subgroup_mult_id) |
|
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
348 |
|
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
349 |
|
14803 | 350 |
subsubsection{*Two distinct right cosets are disjoint*} |
351 |
||
352 |
lemma (in group) rcos_equation: |
|
353 |
"[|subgroup H G; a \<in> carrier G; b \<in> carrier G; ha \<otimes> a = h \<otimes> b; |
|
354 |
h \<in> H; ha \<in> H; hb \<in> H|] |
|
355 |
==> \<exists>h\<in>H. h \<otimes> b = hb \<otimes> a" |
|
356 |
apply (rule bexI [of _"hb \<otimes> ((inv ha) \<otimes> h)"]) |
|
357 |
apply (simp add: m_assoc transpose_inv subgroup.subset [THEN subsetD]) |
|
358 |
apply (simp add: subgroup.m_closed subgroup.m_inv_closed) |
|
359 |
done |
|
360 |
||
361 |
lemma (in group) rcos_disjoint: |
|
362 |
"[|subgroup H G; a \<in> rcosets G H; b \<in> rcosets G H; a\<noteq>b|] ==> a \<inter> b = {}" |
|
363 |
apply (simp add: setrcos_eq r_coset_eq) |
|
364 |
apply (blast intro: rcos_equation sym) |
|
365 |
done |
|
366 |
||
367 |
||
368 |
subsection {*Order of a Group and Lagrange's Theorem*} |
|
369 |
||
370 |
constdefs |
|
371 |
order :: "('a, 'b) semigroup_scheme => nat" |
|
372 |
"order S == card (carrier S)" |
|
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
373 |
|
14747 | 374 |
lemma (in group) setrcos_part_G: "subgroup H G ==> \<Union>rcosets G H = carrier G" |
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
375 |
apply (rule equalityI) |
14666 | 376 |
apply (force simp add: subgroup.subset [THEN subsetD] |
14747 | 377 |
setrcos_eq r_coset_def) |
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
378 |
apply (auto simp add: setrcos_eq subgroup.subset rcos_self) |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
379 |
done |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
380 |
|
14747 | 381 |
lemma (in group) cosets_finite: |
382 |
"[| c \<in> rcosets G H; H \<subseteq> carrier G; finite (carrier G) |] ==> finite c" |
|
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
383 |
apply (auto simp add: setrcos_eq) |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
384 |
apply (simp (no_asm_simp) add: r_coset_subset_G [THEN finite_subset]) |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
385 |
done |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
386 |
|
14747 | 387 |
text{*The next two lemmas support the proof of @{text card_cosets_equal}.*} |
388 |
lemma (in group) inj_on_f: |
|
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
389 |
"[|H \<subseteq> carrier G; a \<in> carrier G|] ==> inj_on (\<lambda>y. y \<otimes> inv a) (H #> a)" |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
390 |
apply (rule inj_onI) |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
391 |
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
|
392 |
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
|
393 |
apply (simp add: subsetD) |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
394 |
done |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
395 |
|
14747 | 396 |
lemma (in group) inj_on_g: |
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
397 |
"[|H \<subseteq> carrier G; a \<in> carrier G|] ==> inj_on (\<lambda>y. y \<otimes> a) H" |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
398 |
by (force simp add: inj_on_def subsetD) |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
399 |
|
14747 | 400 |
lemma (in group) card_cosets_equal: |
401 |
"[| c \<in> rcosets G H; H \<subseteq> carrier G; finite(carrier G) |] |
|
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
402 |
==> card c = card H" |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
403 |
apply (auto simp add: setrcos_eq) |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
404 |
apply (rule card_bij_eq) |
14666 | 405 |
apply (rule inj_on_f, assumption+) |
14747 | 406 |
apply (force simp add: m_assoc subsetD r_coset_def) |
14666 | 407 |
apply (rule inj_on_g, assumption+) |
14747 | 408 |
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
|
409 |
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
|
410 |
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
|
411 |
apply (blast intro: finite_subset) |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
412 |
done |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
413 |
|
14747 | 414 |
lemma (in group) setrcos_subset_PowG: |
415 |
"subgroup H G ==> rcosets G H \<subseteq> Pow(carrier G)" |
|
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
416 |
apply (simp add: setrcos_eq) |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
417 |
apply (blast dest: r_coset_subset_G subgroup.subset) |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
418 |
done |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
419 |
|
14803 | 420 |
|
421 |
theorem (in group) lagrange: |
|
422 |
"[| finite(carrier G); subgroup H G |] |
|
423 |
==> card(rcosets G H) * card(H) = order(G)" |
|
424 |
apply (simp (no_asm_simp) add: order_def setrcos_part_G [symmetric]) |
|
425 |
apply (subst mult_commute) |
|
426 |
apply (rule card_partition) |
|
427 |
apply (simp add: setrcos_subset_PowG [THEN finite_subset]) |
|
428 |
apply (simp add: setrcos_part_G) |
|
429 |
apply (simp add: card_cosets_equal subgroup.subset) |
|
430 |
apply (simp add: rcos_disjoint) |
|
431 |
done |
|
432 |
||
433 |
||
14747 | 434 |
subsection {*Quotient Groups: Factorization of a Group*} |
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
435 |
|
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
436 |
constdefs |
13936 | 437 |
FactGroup :: "[('a,'b) monoid_scheme, 'a set] => ('a set) monoid" |
14803 | 438 |
(infixl "Mod" 65) |
14747 | 439 |
--{*Actually defined for groups rather than monoids*} |
14666 | 440 |
"FactGroup G H == |
14803 | 441 |
(| carrier = rcosets G H, mult = set_mult G, one = H |)" |
14747 | 442 |
|
443 |
lemma (in group) setmult_closed: |
|
14666 | 444 |
"[| H <| G; K1 \<in> rcosets G H; K2 \<in> rcosets G H |] |
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
445 |
==> K1 <#> K2 \<in> rcosets G H" |
14666 | 446 |
by (auto simp add: normal_imp_subgroup [THEN subgroup.subset] |
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
447 |
rcos_sum setrcos_eq) |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
448 |
|
13889
6676ac2527fa
Fixed Coset.thy (proved theorem factorgroup_is_group).
ballarin
parents:
13870
diff
changeset
|
449 |
lemma (in group) setinv_closed: |
6676ac2527fa
Fixed Coset.thy (proved theorem factorgroup_is_group).
ballarin
parents:
13870
diff
changeset
|
450 |
"[| H <| G; K \<in> rcosets G H |] ==> set_inv G K \<in> rcosets G H" |
14747 | 451 |
by (auto simp add: normal_imp_subgroup |
452 |
subgroup.subset rcos_inv |
|
453 |
setrcos_eq) |
|
13889
6676ac2527fa
Fixed Coset.thy (proved theorem factorgroup_is_group).
ballarin
parents:
13870
diff
changeset
|
454 |
|
14747 | 455 |
lemma (in group) setrcos_assoc: |
14666 | 456 |
"[|H <| G; M1 \<in> rcosets G H; M2 \<in> rcosets G H; M3 \<in> rcosets G H|] |
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
457 |
==> M1 <#> M2 <#> M3 = M1 <#> (M2 <#> M3)" |
14666 | 458 |
by (auto simp add: setrcos_eq rcos_sum normal_imp_subgroup |
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
459 |
subgroup.subset m_assoc) |
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
460 |
|
13889
6676ac2527fa
Fixed Coset.thy (proved theorem factorgroup_is_group).
ballarin
parents:
13870
diff
changeset
|
461 |
lemma (in group) subgroup_in_rcosets: |
6676ac2527fa
Fixed Coset.thy (proved theorem factorgroup_is_group).
ballarin
parents:
13870
diff
changeset
|
462 |
"subgroup H G ==> H \<in> rcosets G H" |
6676ac2527fa
Fixed Coset.thy (proved theorem factorgroup_is_group).
ballarin
parents:
13870
diff
changeset
|
463 |
proof - |
6676ac2527fa
Fixed Coset.thy (proved theorem factorgroup_is_group).
ballarin
parents:
13870
diff
changeset
|
464 |
assume sub: "subgroup H G" |
6676ac2527fa
Fixed Coset.thy (proved theorem factorgroup_is_group).
ballarin
parents:
13870
diff
changeset
|
465 |
have "r_coset G H \<one> = H" |
14747 | 466 |
by (rule coset_join2) |
467 |
(auto intro: sub subgroup.one_closed) |
|
13889
6676ac2527fa
Fixed Coset.thy (proved theorem factorgroup_is_group).
ballarin
parents:
13870
diff
changeset
|
468 |
then show ?thesis |
14747 | 469 |
by (auto simp add: setrcos_eq) |
13889
6676ac2527fa
Fixed Coset.thy (proved theorem factorgroup_is_group).
ballarin
parents:
13870
diff
changeset
|
470 |
qed |
6676ac2527fa
Fixed Coset.thy (proved theorem factorgroup_is_group).
ballarin
parents:
13870
diff
changeset
|
471 |
|
14747 | 472 |
lemma (in group) setrcos_inv_mult_group_eq: |
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
473 |
"[|H <| G; M \<in> rcosets G H|] ==> set_inv G M <#> M = H" |
14666 | 474 |
by (auto simp add: setrcos_eq rcos_inv rcos_sum normal_imp_subgroup |
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
475 |
subgroup.subset) |
13940 | 476 |
(* |
13889
6676ac2527fa
Fixed Coset.thy (proved theorem factorgroup_is_group).
ballarin
parents:
13870
diff
changeset
|
477 |
lemma (in group) factorgroup_is_magma: |
6676ac2527fa
Fixed Coset.thy (proved theorem factorgroup_is_group).
ballarin
parents:
13870
diff
changeset
|
478 |
"H <| G ==> magma (G Mod H)" |
6676ac2527fa
Fixed Coset.thy (proved theorem factorgroup_is_group).
ballarin
parents:
13870
diff
changeset
|
479 |
by rule (simp add: FactGroup_def coset.setmult_closed [OF is_coset]) |
6676ac2527fa
Fixed Coset.thy (proved theorem factorgroup_is_group).
ballarin
parents:
13870
diff
changeset
|
480 |
|
6676ac2527fa
Fixed Coset.thy (proved theorem factorgroup_is_group).
ballarin
parents:
13870
diff
changeset
|
481 |
lemma (in group) factorgroup_semigroup_axioms: |
6676ac2527fa
Fixed Coset.thy (proved theorem factorgroup_is_group).
ballarin
parents:
13870
diff
changeset
|
482 |
"H <| G ==> semigroup_axioms (G Mod H)" |
6676ac2527fa
Fixed Coset.thy (proved theorem factorgroup_is_group).
ballarin
parents:
13870
diff
changeset
|
483 |
by rule (simp add: FactGroup_def coset.setrcos_assoc [OF is_coset] |
6676ac2527fa
Fixed Coset.thy (proved theorem factorgroup_is_group).
ballarin
parents:
13870
diff
changeset
|
484 |
coset.setmult_closed [OF is_coset]) |
13940 | 485 |
*) |
13889
6676ac2527fa
Fixed Coset.thy (proved theorem factorgroup_is_group).
ballarin
parents:
13870
diff
changeset
|
486 |
theorem (in group) factorgroup_is_group: |
6676ac2527fa
Fixed Coset.thy (proved theorem factorgroup_is_group).
ballarin
parents:
13870
diff
changeset
|
487 |
"H <| G ==> group (G Mod H)" |
14666 | 488 |
apply (simp add: FactGroup_def) |
13936 | 489 |
apply (rule groupI) |
14747 | 490 |
apply (simp add: setmult_closed) |
13936 | 491 |
apply (simp add: normal_imp_subgroup subgroup_in_rcosets) |
14747 | 492 |
apply (simp add: restrictI setmult_closed setrcos_assoc) |
13889
6676ac2527fa
Fixed Coset.thy (proved theorem factorgroup_is_group).
ballarin
parents:
13870
diff
changeset
|
493 |
apply (simp add: normal_imp_subgroup |
14747 | 494 |
subgroup_in_rcosets setrcos_mult_eq) |
495 |
apply (auto dest: setrcos_inv_mult_group_eq simp add: setinv_closed) |
|
13889
6676ac2527fa
Fixed Coset.thy (proved theorem factorgroup_is_group).
ballarin
parents:
13870
diff
changeset
|
496 |
done |
6676ac2527fa
Fixed Coset.thy (proved theorem factorgroup_is_group).
ballarin
parents:
13870
diff
changeset
|
497 |
|
14803 | 498 |
lemma mult_FactGroup [simp]: "X \<otimes>\<^bsub>(G Mod H)\<^esub> X' = X <#>\<^bsub>G\<^esub> X'" |
499 |
by (simp add: FactGroup_def) |
|
500 |
||
14747 | 501 |
lemma (in group) inv_FactGroup: |
502 |
"N <| G ==> X \<in> carrier (G Mod N) ==> inv\<^bsub>G Mod N\<^esub> X = set_inv G X" |
|
503 |
apply (rule group.inv_equality [OF factorgroup_is_group]) |
|
14761 | 504 |
apply (simp_all add: FactGroup_def setinv_closed setrcos_inv_mult_group_eq) |
14747 | 505 |
done |
506 |
||
507 |
text{*The coset map is a homomorphism from @{term G} to the quotient group |
|
508 |
@{term "G Mod N"}*} |
|
509 |
lemma (in group) r_coset_hom_Mod: |
|
510 |
assumes N: "N <| G" |
|
511 |
shows "(r_coset G N) \<in> hom G (G Mod N)" |
|
14761 | 512 |
by (simp add: FactGroup_def rcosets_def Pi_def hom_def rcos_sum N) |
14747 | 513 |
|
14803 | 514 |
|
515 |
subsection{*Quotienting by the Kernel of a Homomorphism*} |
|
516 |
||
517 |
constdefs |
|
518 |
kernel :: "('a, 'm) monoid_scheme => ('b, 'n) monoid_scheme => |
|
519 |
('a => 'b) => 'a set" |
|
520 |
--{*the kernel of a homomorphism*} |
|
521 |
"kernel G H h == {x. x \<in> carrier G & h x = \<one>\<^bsub>H\<^esub>}"; |
|
522 |
||
523 |
lemma (in group_hom) subgroup_kernel: "subgroup (kernel G H h) G" |
|
524 |
apply (rule group.subgroupI) |
|
525 |
apply (auto simp add: kernel_def group.intro prems) |
|
526 |
done |
|
527 |
||
528 |
text{*The kernel of a homomorphism is a normal subgroup*} |
|
529 |
lemma (in group_hom) normal_kernel: "(kernel G H h) <| G" |
|
530 |
apply (simp add: group.normal_inv_iff subgroup_kernel group.intro prems) |
|
531 |
apply (simp add: kernel_def) |
|
532 |
done |
|
533 |
||
534 |
lemma (in group_hom) FactGroup_nonempty: |
|
535 |
assumes X: "X \<in> carrier (G Mod kernel G H h)" |
|
536 |
shows "X \<noteq> {}" |
|
537 |
proof - |
|
538 |
from X |
|
539 |
obtain g where "g \<in> carrier G" |
|
540 |
and "X = kernel G H h #> g" |
|
541 |
by (auto simp add: FactGroup_def rcosets_def) |
|
542 |
thus ?thesis |
|
543 |
by (force simp add: kernel_def r_coset_def image_def intro: hom_one) |
|
544 |
qed |
|
545 |
||
546 |
||
547 |
lemma (in group_hom) FactGroup_contents_mem: |
|
548 |
assumes X: "X \<in> carrier (G Mod (kernel G H h))" |
|
549 |
shows "contents (h`X) \<in> carrier H" |
|
550 |
proof - |
|
551 |
from X |
|
552 |
obtain g where g: "g \<in> carrier G" |
|
553 |
and "X = kernel G H h #> g" |
|
554 |
by (auto simp add: FactGroup_def rcosets_def) |
|
555 |
hence "h ` X = {h g}" by (force simp add: kernel_def r_coset_def image_def g) |
|
556 |
thus ?thesis by (auto simp add: g) |
|
557 |
qed |
|
558 |
||
559 |
lemma (in group_hom) FactGroup_hom: |
|
560 |
"(%X. contents (h`X)) \<in> hom (G Mod (kernel G H h)) H" |
|
561 |
proof (simp add: hom_def funcsetI FactGroup_contents_mem, intro ballI) |
|
562 |
fix X and X' |
|
563 |
assume X: "X \<in> carrier (G Mod kernel G H h)" |
|
564 |
and X': "X' \<in> carrier (G Mod kernel G H h)" |
|
565 |
then |
|
566 |
obtain g and g' |
|
567 |
where "g \<in> carrier G" and "g' \<in> carrier G" |
|
568 |
and "X = kernel G H h #> g" and "X' = kernel G H h #> g'" |
|
569 |
by (auto simp add: FactGroup_def rcosets_def) |
|
570 |
hence all: "\<forall>x\<in>X. h x = h g" "\<forall>x\<in>X'. h x = h g'" |
|
571 |
and Xsub: "X \<subseteq> carrier G" and X'sub: "X' \<subseteq> carrier G" |
|
572 |
by (force simp add: kernel_def r_coset_def image_def)+ |
|
573 |
hence "h ` (X <#> X') = {h g \<otimes>\<^bsub>H\<^esub> h g'}" using X X' |
|
574 |
by (auto dest!: FactGroup_nonempty |
|
575 |
simp add: set_mult_def image_eq_UN |
|
576 |
subsetD [OF Xsub] subsetD [OF X'sub]) |
|
577 |
thus "contents (h ` (X <#> X')) = contents (h ` X) \<otimes>\<^bsub>H\<^esub> contents (h ` X')" |
|
578 |
by (simp add: all image_eq_UN FactGroup_nonempty X X') |
|
579 |
qed |
|
580 |
||
581 |
text{*Lemma for the following injectivity result*} |
|
582 |
lemma (in group_hom) FactGroup_subset: |
|
583 |
"[|g \<in> carrier G; g' \<in> carrier G; h g = h g'|] |
|
584 |
==> kernel G H h #> g \<subseteq> kernel G H h #> g'" |
|
585 |
apply (clarsimp simp add: kernel_def r_coset_def image_def); |
|
586 |
apply (rename_tac y) |
|
587 |
apply (rule_tac x="y \<otimes> g \<otimes> inv g'" in exI) |
|
588 |
apply (simp add: G.m_assoc); |
|
589 |
done |
|
590 |
||
591 |
lemma (in group_hom) FactGroup_inj_on: |
|
592 |
"inj_on (\<lambda>X. contents (h ` X)) (carrier (G Mod kernel G H h))" |
|
593 |
proof (simp add: inj_on_def, clarify) |
|
594 |
fix X and X' |
|
595 |
assume X: "X \<in> carrier (G Mod kernel G H h)" |
|
596 |
and X': "X' \<in> carrier (G Mod kernel G H h)" |
|
597 |
then |
|
598 |
obtain g and g' |
|
599 |
where gX: "g \<in> carrier G" "g' \<in> carrier G" |
|
600 |
"X = kernel G H h #> g" "X' = kernel G H h #> g'" |
|
601 |
by (auto simp add: FactGroup_def rcosets_def) |
|
602 |
hence all: "\<forall>x\<in>X. h x = h g" "\<forall>x\<in>X'. h x = h g'" |
|
603 |
by (force simp add: kernel_def r_coset_def image_def)+ |
|
604 |
assume "contents (h ` X) = contents (h ` X')" |
|
605 |
hence h: "h g = h g'" |
|
606 |
by (simp add: image_eq_UN all FactGroup_nonempty X X') |
|
607 |
show "X=X'" by (rule equalityI) (simp_all add: FactGroup_subset h gX) |
|
608 |
qed |
|
609 |
||
610 |
text{*If the homomorphism @{term h} is onto @{term H}, then so is the |
|
611 |
homomorphism from the quotient group*} |
|
612 |
lemma (in group_hom) FactGroup_onto: |
|
613 |
assumes h: "h ` carrier G = carrier H" |
|
614 |
shows "(\<lambda>X. contents (h ` X)) ` carrier (G Mod kernel G H h) = carrier H" |
|
615 |
proof |
|
616 |
show "(\<lambda>X. contents (h ` X)) ` carrier (G Mod kernel G H h) \<subseteq> carrier H" |
|
617 |
by (auto simp add: FactGroup_contents_mem) |
|
618 |
show "carrier H \<subseteq> (\<lambda>X. contents (h ` X)) ` carrier (G Mod kernel G H h)" |
|
619 |
proof |
|
620 |
fix y |
|
621 |
assume y: "y \<in> carrier H" |
|
622 |
with h obtain g where g: "g \<in> carrier G" "h g = y" |
|
623 |
by (blast elim: equalityE); |
|
624 |
hence "(\<Union>\<^bsub>x\<in>kernel G H h #> g\<^esub> {h x}) = {y}" |
|
625 |
by (auto simp add: y kernel_def r_coset_def) |
|
626 |
with g show "y \<in> (\<lambda>X. contents (h ` X)) ` carrier (G Mod kernel G H h)" |
|
627 |
by (auto intro!: bexI simp add: FactGroup_def rcosets_def image_eq_UN) |
|
628 |
qed |
|
629 |
qed |
|
630 |
||
631 |
||
632 |
text{*If @{term h} is a homomorphism from @{term G} onto @{term H}, then the |
|
633 |
quotient group @{term "G Mod (kernel G H h)"} is isomorphic to @{term H}.*} |
|
634 |
theorem (in group_hom) FactGroup_iso: |
|
635 |
"h ` carrier G = carrier H |
|
636 |
\<Longrightarrow> (%X. contents (h`X)) \<in> (G Mod (kernel G H h)) \<cong> H" |
|
637 |
by (simp add: iso_def FactGroup_hom FactGroup_inj_on bij_betw_def |
|
638 |
FactGroup_onto) |
|
639 |
||
13870
cf947d1ec5ff
moved Exponent, Coset, Sylow from GroupTheory to Algebra, converting them
paulson
parents:
diff
changeset
|
640 |
end |