Kronecker-Weber, wild step for : an abelian field of degree unramified outside lies in
OpenNumberField.exists_algHom_cyclotomicField_two_pow_of_isUnramifiedInLet be a finite abelian extension of of degree . Assume that each odd prime is unramified in . The statement asserts that there is and an embedding of fields
Proof idea. The quadratic fields unramified outside are , and , by Minkowski's bound or a discriminant computation. If is real, its Galois group has exactly one subgroup of index (the only real quadratic field unramified outside is ), so it is cyclic, and is the real subfield of degree of by the compositum argument of the odd case. In general, is abelian of -power degree and unramified outside , and it is the compositum of and its maximal real subfield, so .
Use. With the tame step (NumberField.exists_isUnramifiedIn_le_sup_of_prime_ne) this gives the Kronecker-Weber theorem for abelian fields of -power degree. This is a child of Leopoldt.exists_algHom_cyclotomicField_of_isCyclic_primePow.
Formalization Note. "Abelian" is IsAbelianGalois ℚ K; " unramified in " is Algebra.IsUnramifiedIn (𝓞 K) (Ideal.span {(ℓ : ℤ)}); the conclusion is Nonempty (K →ₐ[ℚ] CyclotomicField (2 ^ N) ℚ). For take . The platform has the quadratic case (NumberField.exists_algHom_cyclotomicField_of_finrank_le_two) and the exponent-two case (NumberField.exists_algHom_cyclotomicField_of_exponent_two), but with an unspecified cyclotomic field; here the conductor must be a power of . Mathlib has ZMod.isCyclic_units_two_pow_iff, ZMod.orderOf_five and IsCyclotomicExtension.Rat.galEquivZMod.
import Mathlib open NumberField
theorem NumberField.exists_algHom_cyclotomicField_two_pow_of_isUnramifiedIn
(K : Type*) [Field K] [NumberField K] [IsAbelianGalois ℚ K] (k : ℕ)
(hK : Module.finrank ℚ K = 2 ^ k)
(hunr : ∀ ℓ : ℕ, ℓ.Prime → ℓ ≠ 2 → Algebra.IsUnramifiedIn (𝓞 K) (Ideal.span {(ℓ : ℤ)})) :
∃ N : ℕ, Nonempty (K →ₐ[ℚ] CyclotomicField (2 ^ N) ℚ) := by sorry