cfahlgren1/math / lean /OAI /NumberTheory /PrimePackets /FrobeniusCoset.lean
cfahlgren1's picture
download
raw
11.9 kB
import Mathlib
import OAI.NumberTheory.PrimePackets.FrobeniusOrder
namespace OAI
noncomputable section
open Module
open scoped NumberField Pointwise Classical
namespace PrimeDegreePackets.GaloisIdealCharacter
variable (F E : Type*) [Field F] [NumberField F] [Field E] [NumberField E]
variable [Algebra F E] [FiniteDimensional F E] [IsGalois F E]
lemma zpowers_frobenius_eq_stabilizer
(P : Ideal (π“ž F)) (Q : Ideal (π“ž E))
[P.IsMaximal] [Q.IsMaximal] [Q.LiesOver P]
[Algebra.IsUnramifiedAt (π“ž F) Q]
(g : E ≃ₐ[F] E) (hg : IsArithFrobAt (π“ž F) g Q) :
Subgroup.zpowers g = MulAction.stabilizer (E ≃ₐ[F] E) Q := by
have hle : Subgroup.zpowers g ≀ MulAction.stabilizer (E ≃ₐ[F] E) Q :=
Subgroup.zpowers_le.mpr hg.mem_stabilizer
have hc : Nat.card (Subgroup.zpowers g) =
Nat.card (MulAction.stabilizer (E ≃ₐ[F] E) Q) := by
rw [Nat.card_zpowers, orderOf_eq_inertiaDeg_of_isArithFrobAt F E P Q g hg,
Ideal.card_stabilizer_eq (G := E ≃ₐ[F] E) P Q,
Ideal.ramificationIdxIn_eq_ramificationIdx P Q (E ≃ₐ[F] E),
Ideal.inertiaDegIn_eq_inertiaDeg P Q (E ≃ₐ[F] E),
Ideal.ramificationIdx_eq_one_of_isUnramifiedAt, one_mul]
exact SetLike.coe_injective (Set.eq_of_inclusion_surjective
((Nat.bijective_iff_injective_and_card (Set.inclusion hle)).mpr
⟨Set.inclusion_injective hle, hc⟩).2)
local instance fixingRingGroup (L : IntermediateField F E) :
IsGaloisGroup L.fixingSubgroup (π“ž L) (π“ž E) :=
IsGaloisGroup.of_mulEquiv (IntermediateField.fixingSubgroupEquiv L)
(fun _ _ => rfl)
local instance fixingRingCommutes (L : IntermediateField F E) :
SMulCommClass L.fixingSubgroup (π“ž L) (π“ž E) :=
(fixingRingGroup F E L).commutes
omit [FiniteDimensional F E] in
lemma under_fixing_smul (L : IntermediateField F E) (Q : Ideal (π“ž E))
(h : L.fixingSubgroup) :
((h.val : E ≃ₐ[F] E) β€’ Q).under (π“ž L) = Q.under (π“ž L) := by
change (h β€’ Q).under (π“ž L) = _
exact Ideal.under_smul (π“ž L) Q h
def cosetPrime (L : IntermediateField F E) (Q : Ideal (π“ž E)) :
(E ≃ₐ[F] E) β§Έ L.fixingSubgroup β†’ Ideal (π“ž L) := by
refine Quotient.lift (fun a : E ≃ₐ[F] E => (a⁻¹ β€’ Q).under (π“ž L)) ?_
intro a b hab
have hm : a⁻¹ * b ∈ L.fixingSubgroup := QuotientGroup.leftRel_apply.mp hab
have he : b⁻¹ = (a⁻¹ * b)⁻¹ * a⁻¹ := by group
rw [he, mul_smul]
exact (under_fixing_smul F E L (a⁻¹ β€’ Q) ⟨(a⁻¹ * b)⁻¹, L.fixingSubgroup.inv_mem hm⟩).symm
omit [FiniteDimensional F E] in
@[simp] lemma cosetPrime_mk (L : IntermediateField F E) (Q : Ideal (π“ž E))
(a : E ≃ₐ[F] E) :
cosetPrime F E L Q (QuotientGroup.mk a) = (a⁻¹ β€’ Q).under (π“ž L) := rfl
omit [FiniteDimensional F E] in
lemma cosetPrime_stabilizer_smul (L : IntermediateField F E) (Q : Ideal (π“ž E))
(h : MulAction.stabilizer (E ≃ₐ[F] E) Q)
(a : (E ≃ₐ[F] E) β§Έ L.fixingSubgroup) :
cosetPrime F E L Q (h β€’ a) = cosetPrime F E L Q a := by
induction a using Quotient.inductionOn
rename_i a
change ((h.val * a)⁻¹ β€’ Q).under (π“ž L) = _
rw [mul_inv_rev, mul_smul]
have : h.val⁻¹ β€’ Q = Q := h⁻¹ |>.property
rw [this]
rfl
section GroupCosets
variable {G A : Type*} [Group G] [MulAction G A]
lemma mem_coset_stabilizer_iff (H : Subgroup G) (x : A) (a : G)
(d : MulAction.stabilizer G x) :
d ∈ MulAction.stabilizer (MulAction.stabilizer G x) (QuotientGroup.mk a : G β§Έ H) ↔
a⁻¹ * d.val * a ∈ H := by
rw [MulAction.mem_stabilizer_iff]
change (QuotientGroup.mk (d.val * a) : G β§Έ H) = QuotientGroup.mk a ↔ _
rw [eq_comm, QuotientGroup.eq]
simp only [mul_assoc]
def cosetStabilizerEquiv (H : Subgroup G) (x : A) (a : G) :
MulAction.stabilizer (MulAction.stabilizer G x) (QuotientGroup.mk a : G β§Έ H) ≃
MulAction.stabilizer H (a⁻¹ β€’ x) where
toFun d := ⟨⟨a⁻¹ * d.val.val * a, (mem_coset_stabilizer_iff H x a d.val).mp d.property⟩,
by
change (a⁻¹ * d.val.val * a) β€’ (a⁻¹ β€’ x) = a⁻¹ β€’ x
rw [mul_smul, mul_smul, smul_inv_smul, d.val.property]⟩
invFun h := ⟨⟨a * h.val.val * a⁻¹, by
change (a * h.val.val * a⁻¹) β€’ x = x
rw [mul_smul, mul_smul]
rw [show h.val.val β€’ (a⁻¹ β€’ x) = a⁻¹ β€’ x from h.property, smul_inv_smul]⟩, by
apply (mem_coset_stabilizer_iff H x a _).mpr
simpa only [mul_assoc, inv_mul_cancel_left, inv_mul_cancel, mul_one] using h.val.property⟩
left_inv d := by
apply Subtype.ext
apply Subtype.ext
change a * (a⁻¹ * d.val.val * a) * a⁻¹ = d.val.val
group
right_inv h := by
apply Subtype.ext
apply Subtype.ext
change a⁻¹ * (a * h.val.val * a⁻¹) * a = h.val.val
group
end GroupCosets
lemma cosetPrime_eq_iff (L : IntermediateField F E) (Q : Ideal (π“ž E)) [Q.IsPrime]
(a b : (E ≃ₐ[F] E) β§Έ L.fixingSubgroup) :
cosetPrime F E L Q a = cosetPrime F E L Q b ↔
MulAction.orbitRel (MulAction.stabilizer (E ≃ₐ[F] E) Q) _ a b := by
constructor
Β· induction a using Quotient.inductionOn
rename_i a
induction b using Quotient.inductionOn
rename_i b
intro he
change (a⁻¹ β€’ Q).under (π“ž L) = (b⁻¹ β€’ Q).under (π“ž L) at he
let : (a⁻¹ β€’ Q).IsPrime := Ideal.IsPrime.smul _
let : (b⁻¹ β€’ Q).IsPrime := Ideal.IsPrime.smul _
obtain ⟨h, hh⟩ := Algebra.IsInvariant.exists_smul_of_under_eq
(π“ž L) (π“ž E) L.fixingSubgroup (b⁻¹ β€’ Q) (a⁻¹ β€’ Q) he.symm
have hd : a * h.val * b⁻¹ ∈ MulAction.stabilizer (E ≃ₐ[F] E) Q := by
change (a * h.val * b⁻¹) β€’ Q = Q
rw [mul_smul, mul_smul]
rw [show h.val β€’ (b⁻¹ β€’ Q) = a⁻¹ β€’ Q from hh.symm, smul_inv_smul]
refine ⟨⟨a * h.val * b⁻¹, hd⟩, ?_⟩
change (QuotientGroup.mk ((a * h.val * b⁻¹) * b) : (E ≃ₐ[F] E) β§Έ L.fixingSubgroup) =
QuotientGroup.mk a
rw [eq_comm, QuotientGroup.eq]
simpa only [mul_assoc, inv_mul_cancel_left, inv_mul_cancel, mul_one] using h.property
· rintro ⟨h, rfl⟩
exact cosetPrime_stabilizer_smul F E L Q h b
omit [FiniteDimensional F E] in
lemma cosetPrime_mem_primesOver (L : IntermediateField F E) (P : Ideal (π“ž F))
(Q : Ideal (π“ž E)) [Q.IsPrime] [Q.LiesOver P]
(a : (E ≃ₐ[F] E) β§Έ L.fixingSubgroup) :
cosetPrime F E L Q a ∈ Ideal.primesOver P (π“ž L) := by
induction a using Quotient.inductionOn
rename_i a
change (a⁻¹ β€’ Q).under (π“ž L) ∈ _
let : (a⁻¹ β€’ Q).IsPrime := Ideal.IsPrime.smul _
let : (a⁻¹ β€’ Q).LiesOver P := Ideal.LiesOver.smul _
refine ⟨inferInstance, ?_⟩
constructor
rw [Ideal.under_under, (a⁻¹ β€’ Q).over_def P]
def primeOfCosetOrbit (L : IntermediateField F E) (P : Ideal (π“ž F))
(Q : Ideal (π“ž E)) [Q.IsPrime] [Q.LiesOver P] :
MulAction.orbitRel.Quotient (MulAction.stabilizer (E ≃ₐ[F] E) Q)
((E ≃ₐ[F] E) β§Έ L.fixingSubgroup) β†’ Ideal.primesOver P (π“ž L) := by
refine Quotient.lift (fun a =>
⟨cosetPrime F E L Q a, cosetPrime_mem_primesOver F E L P Q a⟩) ?_
intro a b h
apply Subtype.ext
exact (cosetPrime_eq_iff F E L Q a b).mpr h
lemma primeOfCosetOrbit_bijective (L : IntermediateField F E) (P : Ideal (π“ž F))
(Q : Ideal (π“ž E)) [P.IsPrime] [Q.IsPrime] [Q.LiesOver P] :
Function.Bijective (primeOfCosetOrbit F E L P Q) := by
constructor
Β· intro a b
induction a using Quotient.inductionOn
rename_i a
induction b using Quotient.inductionOn
rename_i b
intro hab
apply Quotient.sound
apply (cosetPrime_eq_iff F E L Q a b).mp
exact congrArg Subtype.val hab
Β· intro R
let : R.val.IsPrime := R.property.1
let : R.val.LiesOver P := R.property.2
let S : Ideal.primesOver R.val (π“ž E) := Classical.choice inferInstance
let : S.val.IsPrime := S.property.1
let : S.val.LiesOver R.val := S.property.2
let : S.val.LiesOver P := Ideal.LiesOver.trans S.val R.val P
obtain ⟨a, ha⟩ := Ideal.exists_smul_eq_of_isGaloisGroup P Q S.val (E ≃ₐ[F] E)
refine ⟨Quotient.mk _ (QuotientGroup.mk a⁻¹), ?_⟩
apply Subtype.ext
change (a⁻¹⁻¹ β€’ Q).under (π“ž L) = R.val
rw [inv_inv, ha]
exact (S.val.over_def R.val).symm
lemma cosetOrbit_card_eq_inertiaDeg
(L : IntermediateField F E) (P : Ideal (π“ž F)) (hP : P β‰  βŠ₯)
(Q : Ideal (π“ž E)) [P.IsMaximal] [Q.IsMaximal] [Q.LiesOver P]
[Algebra.IsUnramifiedAt (π“ž F) Q] (a : E ≃ₐ[F] E) :
Nat.card (MulAction.orbit (MulAction.stabilizer (E ≃ₐ[F] E) Q)
(QuotientGroup.mk a : (E ≃ₐ[F] E) β§Έ L.fixingSubgroup)) =
((a⁻¹ β€’ Q).under (π“ž L)).inertiaDeg (π“ž F) := by
let Q' : Ideal (π“ž E) := a⁻¹ β€’ Q
let R : Ideal (π“ž L) := Q'.under (π“ž L)
let : Q'.IsPrime := Ideal.IsPrime.smul _
let : Q'.LiesOver P := Ideal.LiesOver.smul _
let : Q'.IsMaximal := Ideal.IsPrime.isMaximal inferInstance
(Ideal.ne_bot_of_liesOver_of_ne_bot hP Q')
let : R.IsPrime := inferInstance
let : Q'.LiesOver R := inferInstance
let : R.LiesOver P := by
constructor
rw [Ideal.under_under, Q'.over_def P]
let : R.IsMaximal := Ideal.IsPrime.isMaximal inferInstance
(Ideal.ne_bot_of_liesOver_of_ne_bot hP R)
have heQ' : Q'.ramificationIdx (π“ž F) = 1 := by
change (a⁻¹ β€’ Q).ramificationIdx (π“ž F) = 1
rw [Ideal.ramificationIdx_smul, Ideal.ramificationIdx_eq_one_of_isUnramifiedAt]
have he : Q'.ramificationIdx (π“ž L) = 1 := by
have h := Ideal.ramificationIdx_tower (R := π“ž F) R Q'
rw [heQ'] at h
exact Nat.eq_one_of_mul_eq_one_left h.symm
have hlocal : Nat.card (MulAction.stabilizer L.fixingSubgroup Q') =
Q'.inertiaDeg (π“ž L) := by
have hc := Ideal.card_stabilizer_eq (G := L.fixingSubgroup) R Q'
rw [Ideal.ramificationIdxIn_eq_ramificationIdx R Q' L.fixingSubgroup,
Ideal.inertiaDegIn_eq_inertiaDeg R Q' L.fixingSubgroup, he, one_mul] at hc
convert hc using 1
congr 1
have hbase : Nat.card (MulAction.stabilizer (E ≃ₐ[F] E) Q) =
Q.inertiaDeg (π“ž F) := by
rw [Ideal.card_stabilizer_eq (G := E ≃ₐ[F] E) P Q,
Ideal.ramificationIdxIn_eq_ramificationIdx P Q (E ≃ₐ[F] E),
Ideal.inertiaDegIn_eq_inertiaDeg P Q (E ≃ₐ[F] E),
Ideal.ramificationIdx_eq_one_of_isUnramifiedAt, one_mul]
have hstab := Nat.card_congr (cosetStabilizerEquiv L.fixingSubgroup Q a)
have hc := Nat.card_congr
(MulAction.orbitProdStabilizerEquivGroup (MulAction.stabilizer (E ≃ₐ[F] E) Q)
(QuotientGroup.mk a : (E ≃ₐ[F] E) β§Έ L.fixingSubgroup))
rw [Nat.card_prod, hstab, hlocal, hbase] at hc
have hf : Q.inertiaDeg (π“ž F) = R.inertiaDeg (π“ž F) * Q'.inertiaDeg (π“ž L) := by
rw [← Ideal.inertiaDeg_smul (π“ž F) Q a⁻¹]
exact Ideal.inertiaDeg_tower R Q'
apply Nat.eq_of_mul_eq_mul_right (Ideal.inertiaDeg_pos Q' (π“ž L))
exact hc.trans hf
theorem actual_frobenius_coset_cycle_lengths
(L : IntermediateField F E) (P : Ideal (π“ž F)) (hP : P β‰  βŠ₯)
(Q : Ideal (π“ž E)) [P.IsMaximal] [Q.IsMaximal] [Q.LiesOver P]
[Algebra.IsUnramifiedAt (π“ž F) Q]
(g : E ≃ₐ[F] E) (hg : IsArithFrobAt (π“ž F) g Q) :
βˆƒ e : MulAction.orbitRel.Quotient (Subgroup.zpowers g)
((E ≃ₐ[F] E) β§Έ L.fixingSubgroup) ≃ Ideal.primesOver P (π“ž L),
βˆ€ o, Nat.card o.orbit = (e o).val.inertiaDeg (π“ž F) := by
rw [zpowers_frobenius_eq_stabilizer F E P Q g hg]
refine ⟨Equiv.ofBijective (primeOfCosetOrbit F E L P Q)
(primeOfCosetOrbit_bijective F E L P Q), ?_⟩
intro o
induction o using Quotient.inductionOn
rename_i a
induction a using Quotient.inductionOn
rename_i a
exact cosetOrbit_card_eq_inertiaDeg F E L P hP Q a
end PrimeDegreePackets.GaloisIdealCharacter
end
end OAI

Xet Storage Details

Size:
11.9 kB
Β·
Xet hash:
bc16992dd10db2edbf2b37ba0f061b04cdba9d34d4462cb0e8a9b51f6f03f877

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.