Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Automorphisms acting on the ring of integers

Definition
TauCeti_NumberTheory_NumberField_AutomorphismAction

by riccardo.brasca · Sep 29, 2026 · Mathlib 0df444a (Lean v4.33.1)

number-theorytauceti-chebotarev

For a field extension F/KF/KF/K, the Galois action on OF\mathcal O_FOF​ agrees with the action on FFF under the inclusion, and commutes with scalar multiplication by OK\mathcal O_KOK​. 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
https://github.com/TauCetiProject/TauCeti/blob/948fe4751b1fe528b6d580c522ca5d743d47f185/TauCeti/NumberTheory/NumberField/AutomorphismAction.lean

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me