import TowerDescent import QL.NumberField.RealSubfield.Field /-! Restriction of the workspace's complex embeddings to the real fields of Paper 1. -/ namespace RealTowerComparison open DyadicCyclotomic private theorem primitive_generator (k : ℕ) (σ : Level (k+1) →ₐ[ℤ] ℂ) : IsPrimitiveRoot (σ (zeta (k+1))) (4 * 2^k) := by rw [show 4 * 2^k = 2^(k+1+1) by ring] apply (Polynomial.isRoot_cyclotomic_iff (R := ℂ)).mp rw [Polynomial.IsRoot.def, Polynomial.cyclotomic_prime_pow_eq_geom_sum Nat.prime_two] have h : σ (zeta (k+1)) ^ (2^(k+1)) = -1 := by rw [← map_pow, zeta_pow, map_neg, map_one] simp [Finset.sum_range_succ, h] /-- An embedding of the full ring at level k+1 induces the real-field embedding at level k. -/ noncomputable def realEmbedding (k : ℕ) (σ : Level (k+1) →ₐ[ℤ] ℂ) : QL.EN k →+* ℂ := (QL.existsUnique_hom k (primitive_generator k σ)).exists.choose theorem realEmbedding_theta (k : ℕ) (σ : Level (k+1) →ₐ[ℤ] ℂ) (j : ℕ) (hj : j ≠ 0) : realEmbedding k σ (QL.theta k j) = σ (zeta (k+1)) ^ j + (σ (zeta (k+1)))⁻¹ ^ j := (QL.existsUnique_hom k (primitive_generator k σ)).exists.choose_spec j hj /-- Taking the real field commutes with the two projects' successive tower inclusions. -/ theorem tower_commutes (k : ℕ) (σ : Level (k+2) →ₐ[ℤ] ℂ) : (realEmbedding (k+1) σ).comp (algebraMap (QL.EN k) (QL.EN (k+1))) = realEmbedding k (σ.comp (towerMap (k+1))) := by apply QL.EN.hom_ext k simp only [RingHom.comp_apply, QL.algebraMap_theta, realEmbedding_theta _ _ 1 one_ne_zero, mul_one, realEmbedding_theta _ _ 2 two_ne_zero, pow_one, AlgHom.comp_apply, towerMap_zeta, map_pow, inv_pow] /-- The local radical in the quartic example is precisely the first real quadratic generator. -/ theorem quartic_generator (σ : Level 2 →ₐ[ℤ] ℂ) : realEmbedding 1 σ (QL.theta 1 1) = σ Quartic.radical := by have h : (σ (zeta 2))⁻¹ = -(σ (zeta 2)^3) := by apply inv_eq_of_mul_eq_one_right have hu := congrArg σ (zeta_mul_inverse 2) simpa only [show (2^2 - 1 : ℕ) = 3 by decide, map_mul, map_neg, map_pow, map_one] using hu simp only [realEmbedding_theta _ _ 1 one_ne_zero, pow_one, Quartic.radical, map_sub, map_pow] change σ (zeta 2) + (σ (zeta 2))⁻¹ = σ (zeta 2) - σ (zeta 2)^3 rw [h, sub_eq_add_neg] theorem quartic_units (σ : Level 2 →ₐ[ℤ] ℂ) (m : ℕ) : realEmbedding 1 σ ((3 + 2 * QL.theta 1 1)^m) = σ (Quartic.element 3 2 ^ m) := by simp only [Quartic.element, Nat.cast_ofNat, map_pow, map_add, map_mul, map_ofNat, quartic_generator] end RealTowerComparison #print axioms RealTowerComparison.realEmbedding_theta #print axioms RealTowerComparison.tower_commutes #print axioms RealTowerComparison.quartic_generator #print axioms RealTowerComparison.quartic_units