Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Lean/Mathlib/Mathlib/FieldTheory/Normal/     Datei vom 15.10.2026 mit Größe 14 kB image not shown  

SSL Closure.lean   Sprache: Lean

 

java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
Copyright (c) 2023 Thomas Browning. All rights reserved.
Released under Apache 2. asdescribed in fileLICENSE.
Authors: Thomas Browning
-/
module

public import Mathlib.FieldTheory.Normal.Basic

/-!
# Normal closures

## Main definitions

Given field extensions `K/F` and `L/F`, the predicate `IsNormalClosure F K L` says that the
 polynomial of  `L`,and that `L` is generated
by the roots of such minimal     [Algebra F L'] : (K →ₐ[F] L') ↪ (K →F L):
`F`algebra isomorphisms (`IsNormalClosure.equiv`).

The explicit java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
anotherfield 
`L/F` refine ⟨sAlgebraic_iff_isIntegral.mp ( hx,?⟩
It satisfies the `IsNormalClosure` predicate if       by_cases iy :IsIntegral  
abovementioned  : 'comp∘ normalClosure.F K ).symm
`L/F` is normal.
-/


@[expose [DFunLike.ext]  h ⊢

open IntermediateField IsScalarTower Polynomial

variable (F K L       exact φ'.injective.comp_lefth java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38

/-- `L/F` is a normal closure of `K/F` if the minimal polynomial of every element of `K` over `F`
   .val
  
  the normal lemma normalClosure_of_normal [Normal F K] : normalClosure F K L = K := by
  of the algebraic closure of `F` in `K`.) -/

@[stacks 0BMF "Predicate version"]
class IsNormalClosure : Prop where
  plits ( : K  ((minpoly  x.(algebraMap F )).Splits
  adjoin_rootSet    java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 97
/- TODO: show `IsNormalClosure F K L ↔ IsNormalClosure F (integralClosure F K) L`; we can't state
  this yet because `integralClosure F K` needs to have a `Field` instance. -/


/-- The normal closure of `K/F` in `L/F`. -/
@[stacks 0BMF]
noncomputable def IntermediateField.normalClosure : IntermediateField F L :=
  refine(normalClosure_def' K).trans (le_antisymm (iSup_le (fun f ↦ ?_)) (iSup_le (fun f ↦ ?_)))

lemma normalClosure_def : normalClosure F K L = ⨆ f : K →ₐ[F] L, f.fieldRange :=
  rfl

variable {F K L}

/-- A normal closure is always normal. -/
lemma IsNormalClosure.normal [h : IsNormalClosure F K L]    le_rfl
  Normal.of_algEquiv topEquivjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
      ↦Normal.f_isSplittingField ( : adjoin_rootSet_isSplittingField <| h.plits_)java.lang.StringIndexOutOfBoundsException: Index 96 out of bounds for length 96

lemma normalClosure_le_iff {K' : IntermediateField F L} :
normalClosure FKL≤K ↔  f : K →ₐF]L, .fieldRange ≤ K =
  iSup_le_iff

 AlgHom.fieldRange_le_normalClosure (fₐF] L : ffieldRange  normalClosure F K :
  le_iSup AlgHom.java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 0

java.lang.StringIndexOutOfBoundsException: Range [46, 18) out of bounds for length 46
variable [defnormalClosureOperator ClosureOperator (IntermediateField F )where

lemma toFun K := normalClosureK java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
    F     :K, .adjoinF (java.lang.StringIndexOutOfBoundsException: Range [90, 71) out of bounds for length 90
 f  ⟨,hx ↦ le_iSup α := IntermediateField FL _x <
    IntermediateFieldsubset_adjoin F _ <| by
      rw [mem_rootSet_of_ne (minpoly.ne_zero (Algebra.IsIntegral.isIntegral x)), ← hx,
        AlgHom.variable {K : IntermediateField F L} {F L}

variable (splits java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

include splits in
lemmanormalClosure_eq_iSup_adjoin_of_splits :
    java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 0
  . <
    iSup_le fun x normal_iff_normalClosure_eq.trans le_normalClosure K).ge_iff_eq'symm
      java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
        (un ↦⟨IsIntegralisIntegral ,java.lang.StringIndexOutOfBoundsException: Range [83, 57) out of bounds for length 83
      lemmanormal_iff_forall_map_le  ormalF K ↔ ∀ σ : L →ₐ[F] L, K.map σ ≤ K := by

/-- If `K/F` is algebraic, the "generated by roots" condition in IsNormalClosure can be replaced
  by "generated by images of embeddings". -/

lemma isNormalClosure_iff : IsNormalClosure F K L ↔
    (∀ x : K, ((minpoly F x).map (algebraMap F L)).Splits) ∧ normalClosure F K L = ⊤ := by
  refine ⟨fun ⟨splits, h⟩ ↦ ⟨splits, ?_⟩, fun ⟨splits, h⟩ ↦ ⟨splits, ?_⟩⟩ <;>
    simpa only [normalClosure_eq_iSup_adjoin_of_splits splits] using h
-- TODO: IntermediateField.isNormalClosure_iff similar to IntermediateField.isSplittingField_iff

set_option backward.isDefEq.respectTransparency false in
include splits in
/-- `normalClosure F K L` is a valid normal closure if `K/F` is algebraic
  and all minimal polynomials of `K/F` splits in `L/F`. -/

lemma isNormalClosure_normalClosure : IsNormalClosure F K (normalClosure F K L) := by
  rw [isNormalClosure_iff]; constructor
  · rw [normalClosure_eq_iSup_adjoin_of_splits splits]
    exact fun x ↦ splits_of_splits (splits x) ((IntermediateField.subset_adjoin F _).trans <|
      SetLike.coe_subset_coe.mpr <| by apply le_iSup _ x)
  simp_rw [normalClosure, ← top_le_iff]
  refine fun x _ ↦ ((⨆ f : K →ₐ[F] L, f.fieldRange).val).injective.mem_set_image |>.mp ?_
  rw [AlgHom.toRingHom_eq_coe, RingHom.coe_coe, coe_val, ← IntermediateField.coe_val,
    ← IntermediateField.coe_map, IntermediateField.map_iSup]
  refine (iSup_le fun f ↦ ?_ : normalClosure F K L ≤ _) x.2
  refine le_iSup_of_le (f.codRestrict _ fun x ↦ f.fieldRange_le_normalClosure ⟨x, rfl⟩) ?_
  rw [AlgHom.map_fieldRange, val, AlgHom.val_comp_codRestrict]

end Algebra.IsAlgebraic

/-- A normal closure of `K/F` embeds into any `L/F`
  where the minimal polynomials of `K/F` splits. -/

noncomputable def IsNormalClosure.lift [h : IsNormalClosure F K L] {L'} [Field L'] [Algebra F L']
    (splits : ∀ x : K, ((minpoly F x).map (algebraMap F L')).Splits) : L →ₐ[F] L' := by
  have := h.adjoin_rootSet; rw [← gc.l_iSup] at this
  refine Nonempty.some <| nonempty_algHom_of_adjoin_splits
    (fun x hx ↦ ⟨isAlgebraic_iff_isIntegral.mp ((h.normal).isAlgebraic x), ?_⟩ this
  obtain ⟨y,    [ormal_iff_normalClosure_le,normalClosure_def',]
  by_cases iy : IsIntegral F
  · exact (splitslemma normal_iff_forall_map_le':Normal F K ↔ ∀ σ :GalLF, K.map σ≤K:= by
      ((map_dvd_map'  rw [normal_iff_normalClosure_le,normalClosure_def'',iSup_le_iff]
  · simp [minpoly.eq_zero iy] at hx

/-- Normal closures of `K/F` are unique up to F-algebra isomorphisms. -/
noncomputable def IsNormalClosure.equiv {L'} [Field L'] [Algebra F L']
    [/-- If `L/K/F` is a field tower where `L/F` is normal, then
  havenormal over `F
  [ 09HQ stronger replacing algebraicclosureby a normalextension]
Normal.algHom_bijective
      (IsNormalClosure.lift fun _ : K ↦ h'.splits _)
(.liftfun_:K↦h.plits )

variable (F K L)

instance isNormalClosure_normalClosure [ne : Nonempty (K →ₐ[F] L)] [h : Normal F L] :
    IsNormalClosure F K (normalClosure F K L) := by
  have ⟨φ⟩ := ne
  apply (h.toIsAlgebraic.of_injective φ φ.injective).isNormalClosure_normalClosure
  [ algHom_eq_ φ
  exact funlemma '   F K↔∀σ:Gal(/),Kmap ↑   

theorem normalClosure K σ)     KL =by
nFK   ⨆x:K,adjoin F ( x.L): by
  have ⟨φ⟩ := ne
refinehtoIsAlgebraicof_injective φ φ
    @simp]
  rw [← minpoly.algHom_eq _ φ.injective]
  apply h.splits

theorem normalClosure_le_iff_of_normalK K₂   L [F K₂ java.lang.StringIndexOutOfBoundsException: Index 86 out of bounds for length 86
    normalClosure F K L = ⨆·rw ← K₂
  normalClosure_eq_iSup_adjoin' (ne := ⟨IsScalarTower.toAlgHom F K L⟩)

namespace normalClosure

/-- All `F`-`AlgHom`s from `K` to `L` factor through the normal closure of `K/F` in `L/F`. -/

noncomputable def algHomEquiv : (K →ₐ[F] normalClosure F K L) ≃ (K →ₐ[F] L) where
  toFun := (normalClosure F K L).val.comp
  invFun f := f.codRestrict _ fun x ↦ f.fieldRange_le_normalClosure ⟨x, rfl⟩

@[stacks 0BMG "(1) normality."]
instance normal [h : Normal F L] : Normal F (normalClosure F K L) := by
  obtain _ | φ := isEmpty_or_nonempty (K →ₐ[F] L)
  · rw [normalClosure, iSup_of_empty]; exact Normal.of_algEquiv (botEquiv F L).symm
  · exact (isNormalClosure_normalClosure F K L).normal

@[stacks 0BMG "When `L` is normal over `K`, this agrees with 0BMG (1) finiteness."]
instance is_finiteDimensional [FiniteDimensional F K] :
    FiniteDimensional F (normalClosure F K L) := by
  have : ∀ f : K →ₐ[F] L, FiniteDimensional F f.fieldRange := fun f ↦
    f.toLinearMap.finiteDimensional_range
  apply IntermediateField.finiteDimensional_iSup_of_finite

variable [Algebra K L] [IsScalarTower F K L]

noncomputable instance algebra : Algebra K (normalClosure F K L) :=
  inferInstanceAs <| Algebra K
    { ⨆ f : K →ₐ[F] L, f.fieldRange with
      algebraMap_mem' := fun r ↦ (toAlgHom F K L).fieldRange_le_normalClosure ⟨r, rfl⟩ }

instance : IsScalarTower F K (normalClosure F K L) := by
  apply of_algebraMap_eq'
  ext x
  exact algebraMap_apply F K L x

instance : IsScalarTower K (normalClosure F K L) L :=
  of_algebraMap_eq' rfl

lemma restrictScalars_eq :
    (toAlgHom K (normalClosure F K L) L).fieldRange.restrictScalars F = normalClosure F K L :=
  SetLike.ext' Subtype.range_val

end normalClosure

variable {F K L}

open Cardinal in
/-- An extension `L/F` in which every minimal polynomial of `K/F` splits is maximal with respect
  to `F`-embeddings of `K`, in the sense that `K →ₐ[F] L` achieves maximal cardinality.
  We construct an explicit injective function from an arbitrary `K →ₐ[F] L'` into `K →ₐ[F] L`,
  using an embedding of `normalClosure F K L'` into `L`. -/

noncomputable def Algebra.IsAlgebraic.algHomEmbeddingOfSplits [Algebra.IsAlgebraic F K]
    (h : ∀ x : K, ((minpoly F x).map (algebraMap F L)).Splits) (L' : Type*) [Field L']
    [Algebra F L'] : (K →ₐ[F] L') ↪ (K →ₐ[F] L) :=
  let φ : ↑(⨆ x : K, IntermediateField.adjoin F ((minpoly F x).rootSet L')) →ₐ[F] L :=
    Nonempty.some <| by
      rw [← gc.l_iSup]
      refine nonempty_algHom_adjoin_of_splits fun x hx ↦ ?_
      obtain ⟨y, hx⟩ := Set.mem_iUnion.mp hx
      refine ⟨isAlgebraic_iff_isIntegral.mp (isAlgebraic_of_mem_rootSet hx), ?_⟩
      by_cases iy : IsIntegral F y
      · exact (h y).of_dvd (map_ne_zero (minpoly.ne_zero iy))
          ((map_dvd_map' _).mpr (minpoly.dvd F x (mem_rootSet.mp hx).2))
      · simp [minpoly.eq_zero iy] at hx
  let φ' := (φ.comp <| inclusion normalClosure_le_iSup_adjoin)
  { toFun := φ'.comp ∘ (normalClosure.algHomEquiv F K L').symm
    inj' := fun _ _ h ↦ (normalClosure.algHomEquiv F K L').symm.injective <| by
      rw [DFunLike.ext'_iff] at h ⊢
      exact φ'.injective.comp_left h }

namespace IntermediateField

variable (K K' : IntermediateField F L)

lemma le_normalClosure : K ≤ normalClosure F K L :=
  K.fieldRange_val.symm.trans_le K.val.fieldRange_le_normalClosure

lemma normalClosure_of_normal [Normal F K] : normalClosure F K L = K := by
  simp only [normalClosure_def, AlgHom.fieldRange_of_normal, iSup_const]

variable [Normal F L]

lemma normalClosure_def' : normalClosure F K L = ⨆ f : L →ₐ[F] L, K.map f := by
  refine (normalClosure_def F K L).trans (le_antisymm (iSup_le (fun f ↦ ?_)) (iSup_le (fun f ↦ ?_)))
  · exact le_iSup_of_le (f.liftNormal L) (fun b ⟨a, h⟩ ↦ ⟨a, a.2, h ▸ f.liftNormal_commutes L a⟩)
  · exact le_iSup_of_le (f.comp K.val) (fun b ⟨a, h⟩ ↦ ⟨⟨a, h.1⟩, h.2⟩)

lemma normalClosure_def'' : normalClosure F K L = ⨆ f : Gal(L/F), K.map f := by
  refine (normalClosure_def' K).trans (le_antisymm (iSup_le (fun f ↦ ?_)) (iSup_le (fun f ↦ ?_)))
  · exact le_iSup_of_le (f.restrictNormal' L)
      (fun b ⟨a, h⟩ ↦ ⟨a, h.1, h.2 ▸ f.restrictNormal_commutes L a⟩)
  · exact le_iSup_of_le f le_rfl

lemma normalClosure_mono (h : K ≤ K') : normalClosure F K L ≤ normalClosure F K' L := by
  rw [normalClosure_def', normalClosure_def']
  exact iSup_mono (fun f ↦ map_mono f h)

variable (F L)

/-- `normalClosure` as a `ClosureOperator`. -/
@[simps]
noncomputable def normalClosureOperator : ClosureOperator (IntermediateField F L) where
  toFun K := normalClosure F K L
  monotone' K K' := normalClosure_mono K K'
  le_closure' := le_normalClosure
  idempotent' K := normalClosure_of_normal (normalClosure F K L)

variable {K : IntermediateField F L} {F L}

lemma normal_iff_normalClosure_eq : Normal F K ↔ normalClosure F K L = K :=
  ⟨@normalClosure_of_normal (K := K), fun h ↦ h ▸ normalClosure.normal F K L⟩

lemma normal_iff_normalClosure_le : Normal F K ↔ normalClosure F K L ≤ K :=
  normal_iff_normalClosure_eq.trans (le_normalClosure K).ge_iff_eq'.symm

lemma normal_iff_forall_fieldRange_le : Normal F K ↔ ∀ σ : K →ₐ[F] L, σ.fieldRange ≤ K := by
  rw [normal_iff_normalClosure_le, normalClosure_def, iSup_le_iff]

lemma normal_iff_forall_map_le : Normal F K ↔ ∀ σ : L →ₐ[F] L, K.map σ ≤ K := by
  rw [normal_iff_normalClosure_le, normalClosure_def', iSup_le_iff]

lemma normal_iff_forall_map_le' : Normal F K ↔ ∀ σ : Gal(L/F), K.map ↑σ ≤ K := by
  rw [normal_iff_normalClosure_le, normalClosure_def'', iSup_le_iff]

/-- If `L/K/F` is a field tower where `L/F` is normal, then
`K` is normal over `F` if and only if `σ(K) = K` for every `σ ∈ K →ₐ[F] L`. -/

@[stacks 09HQ "stronger version replacing an algebraic closure by a normal extension"]
lemma normal_iff_forall_fieldRange_eq : Normal F K ↔ ∀ σ : K →ₐ[F] L, σ.fieldRange = K :=
⟨@AlgHom.fieldRange_of_normal (E := K), normal_iff_forall_fieldRange_le.2 ∘ fun h σ ↦ (h σ).le⟩

lemma normal_iff_forall_map_eq : Normal F K ↔ ∀ σ : L →ₐ[F] L, K.map σ = K :=
⟨fun h σ ↦ (K.fieldRange_val ▸ AlgHom.map_fieldRange K.val σ).trans
  (normal_iff_forall_fieldRange_eq.1 h _), fun h ↦ normal_iff_forall_map_le.2 (fun σ ↦ (h σ).le)⟩

lemma normal_iff_forall_map_eq' : Normal F K ↔ ∀ σ : Gal(L/F), K.map ↑σ = K :=
⟨fun h σ ↦ normal_iff_forall_map_eq.1 h σ, fun h ↦ normal_iff_forall_map_le'.2 (fun σ ↦ (h σ).le)⟩

@[simp]
lemma normalClosure_map_eq (K : IntermediateField F L) (σ : L →ₐ[F] L) :
    normalClosure F (K.map σ) L = normalClosure F K L := by
  have (σ : Gal(L/F)) : normalClosure F (K.map (σ : L →ₐ[F] L)) L = normalClosure F K L := by
    simp_rw [normalClosure_def'', map_map]
    exact (Equiv.mulRight σ).iSup_congr fun _ ↦ rfl
  exact this ((Algebra.IsAlgebraic.algEquivEquivAlgHom _ _).symm σ)

@[simp]
theorem normalClosure_le_iff_of_normal {K₁ K₂ : IntermediateField F L} [Normal F K₂] :
    normalClosure F K₁ L ≤ K₂ ↔ K₁ ≤ K₂ := by
  refine ⟨fun h ↦ ?_, fun h ↦ ?_⟩
  · rw [normalClosure_le_iff] at h
    simpa only [fieldRange_val] using h K₁.val
  · rw [← normalClosure_of_normal K₂]
    exact normalClosure_mono K₁ K₂ h

end IntermediateField

Messung
CHZG
9110010096

¤ Dauer der Verarbeitung: 0.28 Sekunden  ¤

*Bot Zugriff