Skip to content
Closed
Show file tree
Hide file tree
Changes from 11 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions Mathlib/FieldTheory/Galois/Basic.lean
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,24 @@ theorem tfae [FiniteDimensional F E] : List.TFAE [
tfae_have 4 → 1 := fun ⟨h, hp1, _⟩ ↦ of_separable_splitting_field hp1
tfae_finish

/--
If `K/F` is a finite Galois extension then, for any extension `L/F`, the extension `KL/L`
is also Galois.
-/
theorem sup_right (K L : IntermediateField F E) [IsGalois F K] [FiniteDimensional F K]
(h : K ⊔ L = ⊤) : IsGalois L E := by
obtain ⟨T, hT₁, hT₂⟩ := IsGalois.is_separable_splitting_field F K
let T' := T.map (algebraMap F L)
suffices T'.IsSplittingField L E from IsGalois.of_separable_splitting_field (p := T') hT₁.map
rw [isSplittingField_iff_intermediateField] at hT₂ ⊢
constructor
· rw [Polynomial.splits_map_iff, ← IsScalarTower.algebraMap_eq]
exact Polynomial.splits_of_algHom hT₂.1 (IsScalarTower.toAlgHom _ _ _)
· have h' : T'.rootSet E = T.rootSet E := by simp [Set.ext_iff, Polynomial.mem_rootSet', T']
rw [← (lift_injective K).eq_iff, lift_adjoin, ← coe_val, T.image_rootSet hT₂.1] at hT₂
rw [h', ← restrictScalars_inj F, restrictScalars_top, restrictScalars_adjoin, adjoin_union,
adjoin_self, hT₂.2, lift_top, sup_comm, h]

end IsGalois

end GaloisEquivalentDefinitions
Expand Down
5 changes: 5 additions & 0 deletions Mathlib/FieldTheory/IntermediateField/Adjoin/Defs.lean
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,11 @@ variable {K : Type*} [Field K] [Algebra K E] [Algebra K F] [IsScalarTower K F E]
theorem restrictScalars_top : (⊤ : IntermediateField F E).restrictScalars K = ⊤ :=
rfl

@[simp]
theorem restrictScalars_eq_top_iff {L : IntermediateField F E} :
L.restrictScalars K = ⊤ ↔ L = ⊤ := by
simp [SetLike.ext_iff]

variable (K)
variable (L L' : IntermediateField F E)

Expand Down
10 changes: 10 additions & 0 deletions Mathlib/FieldTheory/IntermediateField/Basic.lean
Original file line number Diff line number Diff line change
Expand Up @@ -619,6 +619,11 @@ def lift {F : IntermediateField K L} (E : IntermediateField K F) : IntermediateF
theorem lift_injective (F : IntermediateField K L) : Function.Injective F.lift :=
map_injective F.val

@[simp]
theorem lift_inj {F : IntermediateField K L} (E E' : IntermediateField K F) :
lift E = lift E' ↔ E = E' :=
(lift_injective F).eq_iff

theorem lift_le {F : IntermediateField K L} (E : IntermediateField K F) : lift E ≤ F := by
rintro _ ⟨x, _, rfl⟩
exact x.2
Expand Down Expand Up @@ -675,6 +680,11 @@ theorem restrictScalars_injective :
Function.Injective (restrictScalars K : IntermediateField L' L → IntermediateField K L) :=
fun U V H => ext fun x => by rw [← mem_restrictScalars K, H, mem_restrictScalars]

@[simp]
theorem restrictScalars_inj {E E' : IntermediateField L' L} :
E.restrictScalars K = E'.restrictScalars K ↔ E = E' :=
(restrictScalars_injective K).eq_iff

end RestrictScalars

/-- This was formerly an instance called `lift2_alg`, but an instance above already provides it. -/
Expand Down
44 changes: 43 additions & 1 deletion Mathlib/FieldTheory/LinearDisjoint.lean
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Copyright (c) 2024 Jz Pan. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jz Pan
-/
import Mathlib.FieldTheory.Galois.Basic
import Mathlib.RingTheory.AlgebraicIndependent.RankAndCardinality
import Mathlib.RingTheory.LinearDisjoint

Expand Down Expand Up @@ -381,7 +382,11 @@ theorem of_le' {A' : IntermediateField F E} (H : A.LinearDisjoint L)
[Algebra L' E] [IsScalarTower F L' E] [IsScalarTower L' L E] : A'.LinearDisjoint L' :=
H.of_le_left hA |>.of_le_right' L'

/-- If `A` and `B` are linearly disjoint over `F`, then their intersection is equal to `F`. -/
/--
If `A` and `B` are linearly disjoint over `F`, then their intersection is equal to `F`.
This is actually an equivalence if `A/F` and `B/F` are finite dimensional, and `A/F` is Galois,
see `IntermediateField.LinearDisjoint.iff_inf_eq_bot`.
-/
theorem inf_eq_bot (H : A.LinearDisjoint B) :
A ⊓ B = ⊥ := toSubalgebra_injective (linearDisjoint_iff'.1 H).inf_eq_bot

Expand Down Expand Up @@ -425,6 +430,43 @@ theorem finrank_right_eq_finrank [Module.Finite F B] (h₁ : A.LinearDisjoint B)
finrank B E = finrank F A :=
h₁.symm.finrank_left_eq_finrank (by rwa [sup_comm])

private theorem of_inf_eq_bot_aux [IsGalois F A] [FiniteDimensional F E] (h₁ : A ⊔ B = ⊤)
(h₂ : A ⊓ B = ⊥) : A.LinearDisjoint B := by
apply LinearDisjoint.of_finrank_sup
rw [h₁, finrank_top', ← Module.finrank_mul_finrank F B E, mul_comm, mul_left_inj'
Module.finrank_pos.ne']
have : IsGalois B E := IsGalois.sup_right A B h₁
rw [← IsGalois.card_aut_eq_finrank, ← IsGalois.card_aut_eq_finrank]
exact Nat.card_congr <| Equiv.ofBijective (restrictRestrictAlgEquivMapHom _ _ _ _)
⟨restrictRestrictAlgEquivMapHom_injective _ _ h₁,
restrictRestrictAlgEquivMapHom_surjective _ _ h₂⟩

/--
If `A` and `B` are finite extensions of `F`, with `A/F` Galois, such that `A ⊓ B = F`, then
`A` and `B` are linearly disjoint over `F`.
-/
theorem of_inf_eq_bot [IsGalois F A] [FiniteDimensional F A] [FiniteDimensional F B]
(h : A ⊓ B = ⊥) : A.LinearDisjoint B := by
let C : IntermediateField F E := A ⊔ B
let A' : IntermediateField F C := A.restrict le_sup_left
let B' : IntermediateField F C := B.restrict le_sup_right
have hA : IntermediateField.map C.val A' = A := lift_restrict le_sup_left
have hB : IntermediateField.map C.val B' = B := lift_restrict le_sup_right
suffices A'.LinearDisjoint B' from hA ▸ hB ▸ LinearDisjoint.map this C.val
have h₁ : A' ⊔ B' = ⊤ := by
apply lift_injective
simp_rw [lift_top, lift, IntermediateField.map_sup, hA, hB, C]
have h₂ : A' ⊓ B' = ⊥ := by
apply lift_injective
simp [lift, map_inf, hA, hB, h]
have : IsGalois F A' := IsGalois.of_algEquiv <| restrict_algEquiv ..
exact of_inf_eq_bot_aux h₁ h₂

@[simp]
theorem iff_inf_eq_bot [IsGalois F A] [FiniteDimensional F A] [FiniteDimensional F B] :
A.LinearDisjoint B ↔ A ⊓ B = ⊥ :=
⟨fun h ↦ inf_eq_bot h, fun h ↦ of_inf_eq_bot h⟩

/-- If `A` and `L` are linearly disjoint over `F`, one of them is algebraic,
then `[L(A) : L] = [A : F]`. -/
theorem adjoin_rank_eq_rank_left_of_isAlgebraic (H : A.LinearDisjoint L)
Expand Down