Trace on rings of integers
DefinitionErdosProblems_Shared_QuadraticSplitPrimeslean-sharedsupport-definition
Defines trO, a trace expression from the ring of integers of M to that of K.
Definition code
import Mathlib.Algebra.CharP.CharAndCard
import Mathlib.Algebra.Field.ZMod
import Mathlib.Algebra.Polynomial.SpecificDegree
import Mathlib.FieldTheory.Minpoly.Field
import Mathlib.NumberTheory.NumberField.Basic
import Mathlib.RingTheory.Ideal.Norm.AbsNorm
import Mathlib.RingTheory.Trace.Basic
/-!
# Degree-one primes that split in a quadratic extension
Let `K ⊆ M` be number fields with `[M : K] = 2` and `M = K(γ)`, `γ ^ 2 = b ∈ 𝓞 K`. A ring
homomorphism `φ : 𝓞 K → ZMod ℓ` (`ℓ` an odd prime) with `φ b = t ^ 2`, `t ≠ 0`, extends to two
distinct ring homomorphisms `𝓞 M → ZMod ℓ`, sending `γ` to `t` and to `-t`.
The ring of integers of `M` is not described explicitly. Instead every `x ∈ M` satisfies
`2 b x = b · Tr(x) + Tr(γ x) · γ` (`Tr = Tr_{M/K}`),
because `x = u + v γ` with `Tr x = 2 u` and `Tr (γ x) = 2 b v`. For `x ∈ 𝓞 M` both traces lie in
`𝓞 K`, so `x ↦ (φ b · φ (Tr x) + φ (Tr (γ x)) · t) / (2 φ b)` is defined on `𝓞 M`; it is
multiplicative because of the two trace identities `trace_identity_one` and
`trace_identity_two`, which follow from the displayed formula.
The kernels of the two extensions are two distinct primes of `𝓞 M` of norm `ℓ`, both lying over
the kernel of `φ`. `exists_split_primes_of_forall_isSquare` packages this in the form consumed by
`ErdosProblems.Shared.IdealCounting.sum_countSupp_mul_le`.
-/
noncomputable section
namespace ErdosProblems.Shared.QuadraticSplit
open NumberField Polynomial
variable {K M : Type*} [Field K] [NumberField K] [Field M] [NumberField M] [Algebra K M]
/-! ### The quadratic extension `M = K(γ)` -/
/-! ### The two extensions of `φ` to `𝓞 M` -/
/-- The trace `𝓞 M → 𝓞 K`. -/
def trO (x : 𝓞 M) : 𝓞 K :=
⟨Algebra.trace K M (x : M), Algebra.isIntegral_trace (RingOfIntegers.isIntegral_coe x)⟩
/-! ### Kernels -/
end ErdosProblems.Shared.QuadraticSplit
Source
Lean source (Apache-2.0): https://github.com/wcook04/plectis-erdos-lean/blob/4fe59e0191169606942baae0949365070b7f419c/ErdosProblems/Shared/QuadraticSplitPrimes.lean#L1-L366
Related paper by Will Cook (CC-BY-4.0): https://github.com/wcook04/plectis-erdos/blob/6917e15ec4abc2623512254da93221e446eeb707/paper/243/erdos-243-reciprocal-tail-rigidity.tex#L1-L58
Paper's AI-assistance disclosure: https://github.com/wcook04/plectis-erdos/blob/6917e15ec4abc2623512254da93221e446eeb707/paper/paper-house-style.sty#L180-L188
Original Erdős problem and Koizumi prior work are distinguished in the paper: https://github.com/wcook04/plectis-erdos/blob/6917e15ec4abc2623512254da93221e446eeb707/paper/243/erdos-243-reciprocal-tail-rigidity.tex#L57-L110