/- Copyright 2026 The Formal Conjectures Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -/ /- The copied Mathlib source carries the following attribution: Copyright (c) 2023 María Inés de Frutos-Fernández. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: María Inés de Frutos-Fernández -/ module public import Mathlib.FieldTheory.AbsoluteGaloisGroup

Restriction maps of absolute Galois groups

These definitions were introduced in Mathlib by Thomas Browning's pull request #41415. They are absent from this repository's Mathlib v4.33.1 dependency. The added code is copied verbatim from Mathlib.FieldTheory.AbsoluteGaloisGroup at the merged commit 7e604dbff1442ed4b05a0b9a4b15c5207584f116.

@[expose] public noncomputable sectionnamespace Fieldvariable (K L : Type*) [Field K] [Field L]local notation "G_K" => absoluteGaloisGroupsectionvariable [Algebra K L] [Algebra (AlgebraicClosure K) (AlgebraicClosure L)] [IsScalarTower K (AlgebraicClosure K) (AlgebraicClosure L)]open IntermediateField in

A commuting square of two fields and their algebraic closures induces a continuous homomorphism of their absolute Galois groups.

All goals completed! 🐙 K:Type u_1L:Type u_2inst✝⁴:Field Kinst✝³:Field Linst✝²:Algebra K Linst✝¹:Algebra (AlgebraicClosure K) (AlgebraicClosure L)inst✝:IsScalarTower K (AlgebraicClosure K) (AlgebraicClosure L)F✝:G_K L →* G_K K := (AlgEquiv.restrictNormalHom (AlgebraicClosure K)).comp (AlgEquiv.restrictScalarsHom K)f:AlgebraicClosure K →ₐ[K] AlgebraicClosure L := IsScalarTower.toAlgHom K (AlgebraicClosure K) (AlgebraicClosure L)F:IntermediateField K (AlgebraicClosure K)hF:FiniteDimensional K ↥Fσ:Gal(AlgebraicClosure L/L)hσ:σ ∈ id ((fun g ↦ g.carrier) (adjoin L ↑(map f F)).fixingSubgroup)x:↑↑F⊢ F✝ σ • ↑x = ↑x All goals completed! 🐙 }endvariable {K L} in

An embedding of fields induces a continuous homomorphism of absolute Galois groups. Note that this depends on an arbitrary choice of embedding of the algebraic closures.

@[simps!] noncomputable def absoluteGaloisGroup.map (f : K →+* L) : G_K L →ₜ* G_K K := letI : Algebra K L := f.toAlgebra letI g : AlgebraicClosure K →ₐ[K] AlgebraicClosure L := IsAlgClosed.lift letI : Algebra (AlgebraicClosure K) (AlgebraicClosure L) := g.toAlgebra absoluteGaloisGroup.mapOfAlgebra K Lend Field