Automorphisms acting on the ring of integers
DefinitionTauCeti_NumberTheory_NumberField_AutomorphismActionnumber-theorytauceti-chebotarev
For a field extension , the Galois action on agrees with the action on under the inclusion, and commutes with scalar multiplication by . These compatibility structures let the same automorphism act on fields and rings of integers.
Formalization Note. These foundational declarations are transplanted from the Tau Ceti contributors' original source (Apache-2.0, commit 948fe4751b1fe528b6d580c522ca5d743d47f185), with compatibility adaptations for Lean 4.33.1. Mathematical proofs requiring separate theorem nodes are published separately.
Definition code
/- Transplanted from https://github.com/TauCetiProject/TauCeti at 948fe4751b1fe528b6d580c522ca5d743d47f185.
Original source copyright/license notices are retained below.
Generated exclusively from compiler declaration, command, and reference facts. -/
import Mathlib.NumberTheory.NumberField.Basic
section
set_option autoImplicit true
/-
Copyright (c) 2026 The Tau Ceti contributors. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: The Tau Ceti contributors
-/
/-!
# Automorphisms acting on the ring of integers
A ring automorphism of a field restricts to its ring of integers, because it preserves
integrality. This file records how that restricted action relates to the ambient one: the
structure map `𝓞 K → K` is equivariant, carrying `σ • z` to `σ` applied to the image of `z`.
It also records that restriction to a normal subfield commutes with the map between the two
rings of integers.
For a tower `F / K` of fields it also records that the `Gal(F/K)`-action on `𝓞 F` commutes with
the `𝓞 K`-scalar action: a `K`-algebra automorphism fixes `K` pointwise, hence fixes the image of
`𝓞 K`. Mathlib supplies the corresponding `SMulCommClass` only over the base `ℤ`
(`integralClosure`'s own instance, with `ℤ` the ring `𝓞 F` is integral over), which is what a
Frobenius over `ℚ` needs; a *relative* Frobenius over a general base `K` needs this one.
`𝓞 K` is the integral closure of `ℤ`, and any ring automorphism of `K` preserves `ℤ`-integrality,
so the base ring `R` over which `σ` is linear is irrelevant to both statement and proof; it is a
free parameter, specialized to `ℚ` by the callers. Nothing here needs `K` to be finite-dimensional
either, so `[NumberField K]` is not assumed.
This is the `AlgEquiv` specialization of Mathlib's `integralClosure.coe_smul`, which is stated
for an arbitrary `[Group G] [MulSemiringAction G K]` and therefore cannot phrase the right-hand
side as function application. Callers want exactly that applied form, so the specialization is
recorded once here rather than reconstructed at each use site.
## Main results
* `NumberField.algebraMap_smul_eq_apply`: `algebraMap (𝓞 K) K (σ • z) = σ (algebraMap (𝓞 K) K z)`.
* `NumberField.algebraMap_restrictNormal_smul`: mapping the action of a restricted automorphism
into the top ring of integers gives the action of the original automorphism.
* `NumberField.RingOfIntegers.smulCommClass`: `Gal(F/K)` acting on `𝓞 F` commutes with the
`𝓞 K`-action.
* `AlgEquiv.mapAlgEquiv_symm_autCongr_smul`: restriction to rings of integers intertwines
conjugation of automorphisms along an algebra equivalence.
-/
section
open scoped NumberField
namespace NumberField
variable {R K : Type*} [CommSemiring R] [Field K] [Algebra R K]
/-- **`algebraMap` intertwines the automorphism actions on `𝓞 K` and on `K`.** The action on the
ring of integers is the restriction of the action on `K` (`integralClosure.coe_smul`), so the
structure map sends `σ • z` to `σ` applied to the image of `z`.
Not named `algebraMap_smul`: that is Mathlib's unrelated `algebraMap R A r • m = r • m`. -/
@[simp] theorem algebraMap_smul_eq_apply (σ : K ≃ₐ[R] K) (z : 𝓞 K) :
algebraMap (𝓞 K) K (σ • z) = σ (algebraMap (𝓞 K) K z) :=
-- `integralClosure.coe_smul` proves this up to two definitional identifications:
-- `RingOfIntegers.val` is an `abbrev` for `algebraMap`, and `AlgEquiv.smul_def` is `rfl`.
integralClosure.coe_smul σ z
variable {M L : Type*} [Field M] [Field L] [Algebra K M] [Algebra M L] [Algebra K L]
[IsScalarTower K M L] [Normal K M]
variable {F : Type*} [Field F] [Algebra K F]
/-- **The Galois action on `𝓞 F` commutes with the `𝓞 K`-action.** A `K`-algebra automorphism of
`F` fixes `K` pointwise, so it fixes the image of `𝓞 K` in `F` and therefore commutes with
multiplication by it.
This is the relative form of Mathlib's `SMulCommClass G R (integralClosure R K)`, which for
`𝓞 F = integralClosure ℤ F` gives only the base ring `ℤ`. Neither field has to be a number
field. -/
instance RingOfIntegers.smulCommClass : SMulCommClass (F ≃ₐ[K] F) (𝓞 K) (𝓞 F) where
smul_comm σ r x := by
apply RingOfIntegers.ext
-- Expand both scalar actions into multiplication and push `σ` through the product.
simp only [Algebra.smul_def, map_mul, algebraMap_smul_eq_apply]
-- The remaining factor is the image of `𝓞 K`; route it through `K`, which `σ` fixes.
rw [← IsScalarTower.algebraMap_apply (𝓞 K) (𝓞 F) F,
IsScalarTower.algebraMap_apply (𝓞 K) K F, AlgEquiv.commutes]
end NumberField
namespace AlgEquiv
variable {R K L : Type*} [Field R] [Field K] [Field L] [Algebra R K] [Algebra R L]
end AlgEquiv
end
end
Source