src/HOL/Algebra/Sylow.thy
author paulson
Fri May 14 16:50:33 2004 +0200 (2004-05-14)
changeset 14747 2eaff69d3d10
parent 14706 71590b7733b7
child 14803 f7557773cc87
permissions -rw-r--r--
removal of locale coset
wenzelm@14706
     1
(*  Title:      HOL/Algebra/Sylow.thy
paulson@13870
     2
    ID:         $Id$
paulson@13870
     3
    Author:     Florian Kammueller, with new proofs by L C Paulson
paulson@13870
     4
*)
paulson@13870
     5
wenzelm@14706
     6
header {* Sylow's theorem *}
paulson@13870
     7
paulson@13870
     8
theory Sylow = Coset:
paulson@13870
     9
wenzelm@14706
    10
text {*
wenzelm@14706
    11
  See also \cite{Kammueller-Paulson:1999}.
wenzelm@14706
    12
*}
wenzelm@14706
    13
paulson@13870
    14
subsection {*Order of a Group and Lagrange's Theorem*}
paulson@13870
    15
paulson@13870
    16
constdefs
wenzelm@14666
    17
  order :: "('a, 'b) semigroup_scheme => nat"
wenzelm@14651
    18
  "order S == card (carrier S)"
paulson@13870
    19
paulson@14747
    20
theorem (in group) lagrange:
wenzelm@14666
    21
     "[| finite(carrier G); subgroup H G |]
paulson@13870
    22
      ==> card(rcosets G H) * card(H) = order(G)"
paulson@13870
    23
apply (simp (no_asm_simp) add: order_def setrcos_part_G [symmetric])
paulson@13870
    24
apply (subst mult_commute)
paulson@13870
    25
apply (rule card_partition)
paulson@13870
    26
   apply (simp add: setrcos_subset_PowG [THEN finite_subset])
paulson@13870
    27
  apply (simp add: setrcos_part_G)
paulson@13870
    28
 apply (simp add: card_cosets_equal subgroup.subset)
paulson@13870
    29
apply (simp add: rcos_disjoint)
paulson@13870
    30
done
paulson@13870
    31
paulson@13870
    32
paulson@13870
    33
text{*The combinatorial argument is in theory Exponent*}
paulson@13870
    34
paulson@14747
    35
locale sylow = group +
paulson@13870
    36
  fixes p and a and m and calM and RelM
paulson@13870
    37
  assumes prime_p:   "p \<in> prime"
paulson@13870
    38
      and order_G:   "order(G) = (p^a) * m"
paulson@13870
    39
      and finite_G [iff]:  "finite (carrier G)"
paulson@14747
    40
  defines "calM == {s. s \<subseteq> carrier(G) & card(s) = p^a}"
paulson@13870
    41
      and "RelM == {(N1,N2). N1 \<in> calM & N2 \<in> calM &
wenzelm@14666
    42
                             (\<exists>g \<in> carrier(G). N1 = (N2 #> g) )}"
paulson@13870
    43
paulson@13870
    44
lemma (in sylow) RelM_refl: "refl calM RelM"
wenzelm@14666
    45
apply (auto simp add: refl_def RelM_def calM_def)
wenzelm@14666
    46
apply (blast intro!: coset_mult_one [symmetric])
paulson@13870
    47
done
paulson@13870
    48
paulson@13870
    49
lemma (in sylow) RelM_sym: "sym RelM"
paulson@13870
    50
proof (unfold sym_def RelM_def, clarify)
paulson@13870
    51
  fix y g
paulson@13870
    52
  assume   "y \<in> calM"
paulson@13870
    53
    and g: "g \<in> carrier G"
paulson@13870
    54
  hence "y = y #> g #> (inv g)" by (simp add: coset_mult_assoc calM_def)
paulson@13870
    55
  thus "\<exists>g'\<in>carrier G. y = y #> g #> g'"
paulson@13870
    56
   by (blast intro: g inv_closed)
paulson@13870
    57
qed
paulson@13870
    58
paulson@13870
    59
lemma (in sylow) RelM_trans: "trans RelM"
wenzelm@14666
    60
by (auto simp add: trans_def RelM_def calM_def coset_mult_assoc)
paulson@13870
    61
paulson@13870
    62
lemma (in sylow) RelM_equiv: "equiv calM RelM"
paulson@13870
    63
apply (unfold equiv_def)
paulson@13870
    64
apply (blast intro: RelM_refl RelM_sym RelM_trans)
paulson@13870
    65
done
paulson@13870
    66
paulson@14747
    67
lemma (in sylow) M_subset_calM_prep: "M' \<in> calM // RelM  ==> M' \<subseteq> calM"
paulson@13870
    68
apply (unfold RelM_def)
paulson@13870
    69
apply (blast elim!: quotientE)
paulson@13870
    70
done
paulson@13870
    71
paulson@13870
    72
subsection{*Main Part of the Proof*}
paulson@13870
    73
paulson@13870
    74
paulson@13870
    75
locale sylow_central = sylow +
paulson@13870
    76
  fixes H and M1 and M
paulson@13870
    77
  assumes M_in_quot:  "M \<in> calM // RelM"
paulson@13870
    78
      and not_dvd_M:  "~(p ^ Suc(exponent p m) dvd card(M))"
paulson@13870
    79
      and M1_in_M:    "M1 \<in> M"
paulson@13870
    80
  defines "H == {g. g\<in>carrier G & M1 #> g = M1}"
paulson@13870
    81
paulson@14747
    82
lemma (in sylow_central) M_subset_calM: "M \<subseteq> calM"
paulson@13870
    83
by (rule M_in_quot [THEN M_subset_calM_prep])
paulson@13870
    84
paulson@13870
    85
lemma (in sylow_central) card_M1: "card(M1) = p^a"
paulson@13870
    86
apply (cut_tac M_subset_calM M1_in_M)
paulson@13870
    87
apply (simp add: calM_def, blast)
paulson@13870
    88
done
paulson@13870
    89
paulson@13870
    90
lemma card_nonempty: "0 < card(S) ==> S \<noteq> {}"
paulson@13870
    91
by force
paulson@13870
    92
wenzelm@14666
    93
lemma (in sylow_central) exists_x_in_M1: "\<exists>x. x\<in>M1"
wenzelm@14666
    94
apply (subgoal_tac "0 < card M1")
wenzelm@14666
    95
 apply (blast dest: card_nonempty)
paulson@13870
    96
apply (cut_tac prime_p [THEN prime_imp_one_less])
paulson@13870
    97
apply (simp (no_asm_simp) add: card_M1)
paulson@13870
    98
done
paulson@13870
    99
paulson@14747
   100
lemma (in sylow_central) M1_subset_G [simp]: "M1 \<subseteq> carrier G"
paulson@13870
   101
apply (rule subsetD [THEN PowD])
paulson@13870
   102
apply (rule_tac [2] M1_in_M)
paulson@13870
   103
apply (rule M_subset_calM [THEN subset_trans])
paulson@13870
   104
apply (auto simp add: calM_def)
paulson@13870
   105
done
paulson@13870
   106
paulson@13870
   107
lemma (in sylow_central) M1_inj_H: "\<exists>f \<in> H\<rightarrow>M1. inj_on f H"
paulson@13870
   108
  proof -
paulson@13870
   109
    from exists_x_in_M1 obtain m1 where m1M: "m1 \<in> M1"..
paulson@13870
   110
    have m1G: "m1 \<in> carrier G" by (simp add: m1M M1_subset_G [THEN subsetD])
paulson@13870
   111
    show ?thesis
paulson@13870
   112
    proof
paulson@13870
   113
      show "inj_on (\<lambda>z\<in>H. m1 \<otimes> z) H"
wenzelm@14666
   114
        by (simp add: inj_on_def l_cancel [of m1 x y, THEN iffD1] H_def m1G)
paulson@13870
   115
      show "restrict (op \<otimes> m1) H \<in> H \<rightarrow> M1"
paulson@13870
   116
      proof (rule restrictI)
wenzelm@14666
   117
        fix z assume zH: "z \<in> H"
wenzelm@14666
   118
        show "m1 \<otimes> z \<in> M1"
wenzelm@14666
   119
        proof -
wenzelm@14666
   120
          from zH
wenzelm@14666
   121
          have zG: "z \<in> carrier G" and M1zeq: "M1 #> z = M1"
wenzelm@14666
   122
            by (auto simp add: H_def)
wenzelm@14666
   123
          show ?thesis
wenzelm@14666
   124
            by (rule subst [OF M1zeq], simp add: m1M zG rcosI)
wenzelm@14666
   125
        qed
paulson@13870
   126
      qed
paulson@13870
   127
    qed
paulson@13870
   128
  qed
paulson@13870
   129
paulson@13870
   130
paulson@13870
   131
subsection{*Discharging the Assumptions of @{text sylow_central}*}
paulson@13870
   132
paulson@13870
   133
lemma (in sylow) EmptyNotInEquivSet: "{} \<notin> calM // RelM"
paulson@13870
   134
by (blast elim!: quotientE dest: RelM_equiv [THEN equiv_class_self])
paulson@13870
   135
paulson@13870
   136
lemma (in sylow) existsM1inM: "M \<in> calM // RelM ==> \<exists>M1. M1 \<in> M"
wenzelm@14666
   137
apply (subgoal_tac "M \<noteq> {}")
wenzelm@14666
   138
 apply blast
paulson@13870
   139
apply (cut_tac EmptyNotInEquivSet, blast)
paulson@13870
   140
done
paulson@13870
   141
paulson@13870
   142
lemma (in sylow) zero_less_o_G: "0 < order(G)"
paulson@13870
   143
apply (unfold order_def)
paulson@13870
   144
apply (blast intro: one_closed zero_less_card_empty)
paulson@13870
   145
done
paulson@13870
   146
paulson@13870
   147
lemma (in sylow) zero_less_m: "0 < m"
paulson@13870
   148
apply (cut_tac zero_less_o_G)
paulson@13870
   149
apply (simp add: order_G)
paulson@13870
   150
done
paulson@13870
   151
paulson@13870
   152
lemma (in sylow) card_calM: "card(calM) = (p^a) * m choose p^a"
paulson@13870
   153
by (simp add: calM_def n_subsets order_G [symmetric] order_def)
paulson@13870
   154
paulson@13870
   155
lemma (in sylow) zero_less_card_calM: "0 < card calM"
paulson@13870
   156
by (simp add: card_calM zero_less_binomial le_extend_mult zero_less_m)
paulson@13870
   157
paulson@13870
   158
lemma (in sylow) max_p_div_calM:
paulson@13870
   159
     "~ (p ^ Suc(exponent p m) dvd card(calM))"
paulson@13870
   160
apply (subgoal_tac "exponent p m = exponent p (card calM) ")
paulson@13870
   161
 apply (cut_tac zero_less_card_calM prime_p)
paulson@13870
   162
 apply (force dest: power_Suc_exponent_Not_dvd)
paulson@13870
   163
apply (simp add: card_calM zero_less_m [THEN const_p_fac])
paulson@13870
   164
done
paulson@13870
   165
paulson@13870
   166
lemma (in sylow) finite_calM: "finite calM"
paulson@13870
   167
apply (unfold calM_def)
paulson@13870
   168
apply (rule_tac B = "Pow (carrier G) " in finite_subset)
paulson@13870
   169
apply auto
paulson@13870
   170
done
paulson@13870
   171
paulson@13870
   172
lemma (in sylow) lemma_A1:
paulson@13870
   173
     "\<exists>M \<in> calM // RelM. ~ (p ^ Suc(exponent p m) dvd card(M))"
paulson@13870
   174
apply (rule max_p_div_calM [THEN contrapos_np])
paulson@13870
   175
apply (simp add: finite_calM equiv_imp_dvd_card [OF _ RelM_equiv])
paulson@13870
   176
done
paulson@13870
   177
paulson@13870
   178
paulson@13870
   179
subsubsection{*Introduction and Destruct Rules for @{term H}*}
paulson@13870
   180
paulson@13870
   181
lemma (in sylow_central) H_I: "[|g \<in> carrier G; M1 #> g = M1|] ==> g \<in> H"
paulson@13870
   182
by (simp add: H_def)
paulson@13870
   183
paulson@13870
   184
lemma (in sylow_central) H_into_carrier_G: "x \<in> H ==> x \<in> carrier G"
paulson@13870
   185
by (simp add: H_def)
paulson@13870
   186
paulson@13870
   187
lemma (in sylow_central) in_H_imp_eq: "g : H ==> M1 #> g = M1"
paulson@13870
   188
by (simp add: H_def)
paulson@13870
   189
paulson@13870
   190
lemma (in sylow_central) H_m_closed: "[| x\<in>H; y\<in>H|] ==> x \<otimes> y \<in> H"
paulson@13870
   191
apply (unfold H_def)
paulson@13870
   192
apply (simp add: coset_mult_assoc [symmetric] m_closed)
paulson@13870
   193
done
paulson@13870
   194
paulson@13870
   195
lemma (in sylow_central) H_not_empty: "H \<noteq> {}"
paulson@13870
   196
apply (simp add: H_def)
paulson@13870
   197
apply (rule exI [of _ \<one>], simp)
paulson@13870
   198
done
paulson@13870
   199
paulson@13870
   200
lemma (in sylow_central) H_is_subgroup: "subgroup H G"
paulson@13870
   201
apply (rule subgroupI)
paulson@13870
   202
apply (rule subsetI)
paulson@13870
   203
apply (erule H_into_carrier_G)
paulson@13870
   204
apply (rule H_not_empty)
paulson@13870
   205
apply (simp add: H_def, clarify)
paulson@13870
   206
apply (erule_tac P = "%z. ?lhs(z) = M1" in subst)
paulson@13870
   207
apply (simp add: coset_mult_assoc )
paulson@13870
   208
apply (blast intro: H_m_closed)
paulson@13870
   209
done
paulson@13870
   210
paulson@13870
   211
paulson@13870
   212
lemma (in sylow_central) rcosetGM1g_subset_G:
paulson@13870
   213
     "[| g \<in> carrier G; x \<in> M1 #>  g |] ==> x \<in> carrier G"
paulson@13870
   214
by (blast intro: M1_subset_G [THEN r_coset_subset_G, THEN subsetD])
paulson@13870
   215
paulson@13870
   216
lemma (in sylow_central) finite_M1: "finite M1"
paulson@13870
   217
by (rule finite_subset [OF M1_subset_G finite_G])
paulson@13870
   218
paulson@13870
   219
lemma (in sylow_central) finite_rcosetGM1g: "g\<in>carrier G ==> finite (M1 #> g)"
paulson@13870
   220
apply (rule finite_subset)
paulson@13870
   221
apply (rule subsetI)
paulson@13870
   222
apply (erule rcosetGM1g_subset_G, assumption)
paulson@13870
   223
apply (rule finite_G)
paulson@13870
   224
done
paulson@13870
   225
paulson@13870
   226
lemma (in sylow_central) M1_cardeq_rcosetGM1g:
paulson@13870
   227
     "g \<in> carrier G ==> card(M1 #> g) = card(M1)"
paulson@13870
   228
by (simp (no_asm_simp) add: M1_subset_G card_cosets_equal setrcosI)
paulson@13870
   229
paulson@13870
   230
lemma (in sylow_central) M1_RelM_rcosetGM1g:
paulson@13870
   231
     "g \<in> carrier G ==> (M1, M1 #> g) \<in> RelM"
paulson@13870
   232
apply (simp (no_asm) add: RelM_def calM_def card_M1 M1_subset_G)
paulson@13870
   233
apply (rule conjI)
paulson@13870
   234
 apply (blast intro: rcosetGM1g_subset_G)
paulson@13870
   235
apply (simp (no_asm_simp) add: card_M1 M1_cardeq_rcosetGM1g)
paulson@13870
   236
apply (rule bexI [of _ "inv g"])
paulson@13870
   237
apply (simp_all add: coset_mult_assoc M1_subset_G)
paulson@13870
   238
done
paulson@13870
   239
paulson@13870
   240
paulson@13870
   241
paulson@13870
   242
subsection{*Equal Cardinalities of @{term M} and @{term "rcosets G H"}*}
paulson@13870
   243
paulson@13870
   244
text{*Injections between @{term M} and @{term "rcosets G H"} show that
paulson@13870
   245
 their cardinalities are equal.*}
paulson@13870
   246
wenzelm@14666
   247
lemma ElemClassEquiv:
paulson@13870
   248
     "[| equiv A r; C\<in>A // r |] ==> \<forall>x \<in> C. \<forall>y \<in> C. (x,y)\<in>r"
paulson@13870
   249
apply (unfold equiv_def quotient_def sym_def trans_def, blast)
paulson@13870
   250
done
paulson@13870
   251
paulson@13870
   252
lemma (in sylow_central) M_elem_map:
paulson@13870
   253
     "M2 \<in> M ==> \<exists>g. g \<in> carrier G & M1 #> g = M2"
paulson@13870
   254
apply (cut_tac M1_in_M M_in_quot [THEN RelM_equiv [THEN ElemClassEquiv]])
paulson@13870
   255
apply (simp add: RelM_def)
paulson@13870
   256
apply (blast dest!: bspec)
paulson@13870
   257
done
paulson@13870
   258
wenzelm@14666
   259
lemmas (in sylow_central) M_elem_map_carrier =
wenzelm@14666
   260
        M_elem_map [THEN someI_ex, THEN conjunct1]
paulson@13870
   261
paulson@13870
   262
lemmas (in sylow_central) M_elem_map_eq =
wenzelm@14666
   263
        M_elem_map [THEN someI_ex, THEN conjunct2]
paulson@13870
   264
paulson@13870
   265
lemma (in sylow_central) M_funcset_setrcos_H:
paulson@13870
   266
     "(%x:M. H #> (SOME g. g \<in> carrier G & M1 #> g = x)) \<in> M \<rightarrow> rcosets G H"
paulson@13870
   267
apply (rule setrcosI [THEN restrictI])
paulson@13870
   268
apply (rule H_is_subgroup [THEN subgroup.subset])
paulson@13870
   269
apply (erule M_elem_map_carrier)
paulson@13870
   270
done
paulson@13870
   271
paulson@13870
   272
lemma (in sylow_central) inj_M_GmodH: "\<exists>f \<in> M\<rightarrow>rcosets G H. inj_on f M"
paulson@13870
   273
apply (rule bexI)
paulson@13870
   274
apply (rule_tac [2] M_funcset_setrcos_H)
paulson@13870
   275
apply (rule inj_onI, simp)
paulson@13870
   276
apply (rule trans [OF _ M_elem_map_eq])
paulson@13870
   277
prefer 2 apply assumption
paulson@13870
   278
apply (rule M_elem_map_eq [symmetric, THEN trans], assumption)
paulson@13870
   279
apply (rule coset_mult_inv1)
paulson@13870
   280
apply (erule_tac [2] M_elem_map_carrier)+
paulson@13870
   281
apply (rule_tac [2] M1_subset_G)
paulson@13870
   282
apply (rule coset_join1 [THEN in_H_imp_eq])
paulson@13870
   283
apply (rule_tac [3] H_is_subgroup)
paulson@13870
   284
prefer 2 apply (blast intro: m_closed M_elem_map_carrier inv_closed)
paulson@13870
   285
apply (simp add: coset_mult_inv2 H_def M_elem_map_carrier subset_def)
paulson@13870
   286
done
paulson@13870
   287
paulson@13870
   288
paulson@13870
   289
(** the opposite injection **)
paulson@13870
   290
paulson@13870
   291
lemma (in sylow_central) H_elem_map:
paulson@13870
   292
     "H1\<in>rcosets G H ==> \<exists>g. g \<in> carrier G & H #> g = H1"
paulson@13870
   293
by (auto simp add: setrcos_eq)
paulson@13870
   294
wenzelm@14666
   295
lemmas (in sylow_central) H_elem_map_carrier =
wenzelm@14666
   296
        H_elem_map [THEN someI_ex, THEN conjunct1]
paulson@13870
   297
paulson@13870
   298
lemmas (in sylow_central) H_elem_map_eq =
wenzelm@14666
   299
        H_elem_map [THEN someI_ex, THEN conjunct2]
paulson@13870
   300
paulson@13870
   301
wenzelm@14666
   302
lemma EquivElemClass:
paulson@13870
   303
     "[|equiv A r; M\<in>A // r; M1\<in>M; (M1, M2)\<in>r |] ==> M2\<in>M"
paulson@13870
   304
apply (unfold equiv_def quotient_def sym_def trans_def, blast)
paulson@13870
   305
done
paulson@13870
   306
paulson@13870
   307
lemma (in sylow_central) setrcos_H_funcset_M:
paulson@13870
   308
     "(\<lambda>C \<in> rcosets G H. M1 #> (@g. g \<in> carrier G \<and> H #> g = C))
paulson@13870
   309
      \<in> rcosets G H \<rightarrow> M"
paulson@13870
   310
apply (simp add: setrcos_eq)
paulson@13870
   311
apply (fast intro: someI2
paulson@13870
   312
            intro!: restrictI M1_in_M
paulson@13870
   313
              EquivElemClass [OF RelM_equiv M_in_quot _  M1_RelM_rcosetGM1g])
paulson@13870
   314
done
paulson@13870
   315
paulson@13870
   316
text{*close to a duplicate of @{text inj_M_GmodH}*}
paulson@13870
   317
lemma (in sylow_central) inj_GmodH_M:
paulson@13870
   318
     "\<exists>g \<in> rcosets G H\<rightarrow>M. inj_on g (rcosets G H)"
paulson@13870
   319
apply (rule bexI)
paulson@13870
   320
apply (rule_tac [2] setrcos_H_funcset_M)
paulson@13870
   321
apply (rule inj_onI)
paulson@13870
   322
apply (simp)
paulson@13870
   323
apply (rule trans [OF _ H_elem_map_eq])
paulson@13870
   324
prefer 2 apply assumption
paulson@13870
   325
apply (rule H_elem_map_eq [symmetric, THEN trans], assumption)
paulson@13870
   326
apply (rule coset_mult_inv1)
paulson@13870
   327
apply (erule_tac [2] H_elem_map_carrier)+
paulson@13870
   328
apply (rule_tac [2] H_is_subgroup [THEN subgroup.subset])
paulson@13870
   329
apply (rule coset_join2)
paulson@13870
   330
apply (blast intro: m_closed inv_closed H_elem_map_carrier)
wenzelm@14666
   331
apply (rule H_is_subgroup)
paulson@13870
   332
apply (simp add: H_I coset_mult_inv2 M1_subset_G H_elem_map_carrier)
paulson@13870
   333
done
paulson@13870
   334
paulson@14747
   335
lemma (in sylow_central) calM_subset_PowG: "calM \<subseteq> Pow(carrier G)"
paulson@13870
   336
by (auto simp add: calM_def)
paulson@13870
   337
paulson@13870
   338
paulson@13870
   339
lemma (in sylow_central) finite_M: "finite M"
paulson@13870
   340
apply (rule finite_subset)
paulson@13870
   341
apply (rule M_subset_calM [THEN subset_trans])
paulson@13870
   342
apply (rule calM_subset_PowG, blast)
paulson@13870
   343
done
paulson@13870
   344
paulson@13870
   345
lemma (in sylow_central) cardMeqIndexH: "card(M) = card(rcosets G H)"
wenzelm@14666
   346
apply (insert inj_M_GmodH inj_GmodH_M)
wenzelm@14666
   347
apply (blast intro: card_bij finite_M H_is_subgroup
wenzelm@14666
   348
             setrcos_subset_PowG [THEN finite_subset]
paulson@13870
   349
             finite_Pow_iff [THEN iffD2])
paulson@13870
   350
done
paulson@13870
   351
paulson@13870
   352
lemma (in sylow_central) index_lem: "card(M) * card(H) = order(G)"
paulson@13870
   353
by (simp add: cardMeqIndexH lagrange H_is_subgroup)
paulson@13870
   354
paulson@14747
   355
lemma (in sylow_central) lemma_leq1: "p^a \<le> card(H)"
paulson@13870
   356
apply (rule dvd_imp_le)
paulson@13870
   357
 apply (rule div_combine [OF prime_p not_dvd_M])
paulson@13870
   358
 prefer 2 apply (blast intro: subgroup.finite_imp_card_positive H_is_subgroup)
paulson@13870
   359
apply (simp add: index_lem order_G power_add mult_dvd_mono power_exponent_dvd
paulson@13870
   360
                 zero_less_m)
paulson@13870
   361
done
paulson@13870
   362
paulson@14747
   363
lemma (in sylow_central) lemma_leq2: "card(H) \<le> p^a"
paulson@13870
   364
apply (subst card_M1 [symmetric])
paulson@13870
   365
apply (cut_tac M1_inj_H)
wenzelm@14666
   366
apply (blast intro!: M1_subset_G intro:
paulson@13870
   367
             card_inj H_into_carrier_G finite_subset [OF _ finite_G])
paulson@13870
   368
done
paulson@13870
   369
paulson@13870
   370
lemma (in sylow_central) card_H_eq: "card(H) = p^a"
paulson@13870
   371
by (blast intro: le_anti_sym lemma_leq1 lemma_leq2)
paulson@13870
   372
paulson@13870
   373
lemma (in sylow) sylow_thm: "\<exists>H. subgroup H G & card(H) = p^a"
wenzelm@14666
   374
apply (cut_tac lemma_A1, clarify)
wenzelm@14666
   375
apply (frule existsM1inM, clarify)
paulson@13870
   376
apply (subgoal_tac "sylow_central G p a m M1 M")
paulson@13870
   377
 apply (blast dest:  sylow_central.H_is_subgroup sylow_central.card_H_eq)
wenzelm@14666
   378
apply (simp add: sylow_central_def sylow_central_axioms_def prems)
paulson@13870
   379
done
paulson@13870
   380
paulson@13870
   381
text{*Needed because the locale's automatic definition refers to
wenzelm@14666
   382
   @{term "semigroup G"} and @{term "group_axioms G"} rather than
paulson@13870
   383
  simply to @{term "group G"}.*}
paulson@13870
   384
lemma sylow_eq: "sylow G p a m = (group G & sylow_axioms G p a m)"
paulson@13870
   385
by (simp add: sylow_def group_def)
paulson@13870
   386
paulson@13870
   387
theorem sylow_thm:
paulson@13870
   388
     "[|p \<in> prime;  group(G);  order(G) = (p^a) * m; finite (carrier G)|]
paulson@13870
   389
      ==> \<exists>H. subgroup H G & card(H) = p^a"
paulson@13870
   390
apply (rule sylow.sylow_thm [of G p a m])
wenzelm@14666
   391
apply (simp add: sylow_eq sylow_axioms_def)
paulson@13870
   392
done
paulson@13870
   393
paulson@13870
   394
end