module public import Aesop.BuiltinRules public import Mathlib.NumberTheory.Padics.Complex import Mathlib.Algebra.Ring.IsFormallyReal import TauCeti.FieldTheory.IsAlgClosed.Automorphism import TauCeti.NumberTheory.NumberField.Countable import TauCeti.NumberTheory.Padics.PadicNormProductFormula public import TauCeti.NumberTheory.Height.FamilyOverPairs public import Lib.General.NumberTheory.ImaginaryQuadraticField import Lib.General.Algebra.ComplexEmbeddings import Lib.PadicComparison.Descent.TestCategory /-! # Height bounds for families over pairs Heights of families of complex numbers indexed by the pairs `ι` of a prime `l` and an isomorphism `ℂ ≃+* ℚ̄_l`. The pairs (`TauCeti.PrimePadicIso`), the bound `TauCeti.PrimePadicIso.HeightLe y c` and its calculus (`HeightLe.of_mul_le`, `mono`, `rpow_mul`, `inv_const`, `mul`, `prod`, `pow`) are Tau Ceti's. `HeightLe y c` says: for some multiplier `H ≠ 0` and some `h l ≥ 0`, the conjugates of `H` are bounded by `exp α`, the numbers `H * y ι` are bounded `l`-adically by `l ^ h l`, and `α + ∑ h l * log l ≤ c` over every finite set of primes. This file adds two results. * `TauCeti.PrimePadicIso.HeightLe.of_le`: a height bound from `l`-adic bounds alone. * `TauCeti.PrimePadicIso.HeightLe.nonneg_of_one`: the constant family `1` has height at least `0`, by the product formula (`Rat.log_abs_add_sum_log_padicNorm_eq_zero`) for the norm of `H`. ## Relation to the literature Gaudron, *Pentes des fibrés vectoriels adéliques sur un corps global* (2006 preprint, arXiv v1), Definition 4.10, equation (29), p. 20, defines the height of one algebraic vector by a normalized sum of its local log norms. In `TauCeti.PrimePadicIso.HeightLe y c` the value `y ι` may depend on both the prime and the isomorphism, so a twist can be chosen for each pair. At infinity the bound is on `‖σ H‖` for every automorphism `σ` of `ℂ`. At each finite place the same multiplier `H` occurs in `‖ι.iso (H * y ι)‖`. For the constant family `1`, `TauCeti.PrimePadicIso.HeightLe.nonneg_of_one` applies the rational product formula to the field norm of `H` from `ℚ⟮H⟯` to `ℚ`. Bombieri and Gubler state the number-field product formula in *Heights in Diophantine Geometry* (2006), Proposition 1.4.4, p. 10, with the normalization `|p|ₚ = 1/p` over `ℚ` in 1.4.3. -/ @[expose] public section open Algebra Module Real Finset Filter IntermediateField AdjoinSimple Padic PadicAlgCl namespace New export TauCeti (PrimePadicIso) export TauCeti.PrimePadicIso (HeightLe) variable {c : ℝ} {y : PrimePadicIso → ℂ} -- The lemmas `HeightLe.of_le` and `HeightLe.nonneg_of_one` extend Tau Ceti in this -- project. They use its namespace for dot notation. /-- If reals `e l` have sum at most `c` over every finite set of primes, and `y ι` has `l`-adic norm at most `exp (e l)` under `ι.iso` for every pair `ι` of a prime `l = ι.prime` and an isomorphism `ι.iso : ℂ ≃+* ℚ̄_l`, then the family `y` has height at most `c`. The `e l` may have any sign. -/ lemma _root_.TauCeti.PrimePadicIso.HeightLe.of_le {e : ℕ → ℝ} (h_sum : ∀ T : Finset ℕ, (∀ l ∈ T, l.Prime) → ∑ l ∈ T, e l ≤ c) (h_norm : ∀ ι : PrimePadicIso, ‖ι.iso (y ι)‖ ≤ exp (e ι.prime)) : HeightLe y c := .of_mul_le (α := 0) one_ne_zero (by simp) e (by simpa using h_norm) (by simpa using h_sum) /-- Let `H` be an algebraic number of degree `n` and `F` an algebraically closed normed field of characteristic zero with the cardinality of `ℂ`. If `‖ι H‖ ≤ exp b` for all isomorphisms `ι : ℂ ≃+* F`, then the norm of `H` from `ℚ(H)` to `ℚ` has size at most `exp (n * b)` in `F`. -/ lemma norm_algebraMap_norm_gen_le {F : Type} [NormedField F] [CharZero F] [IsAlgClosed F] (hF : Cardinal.mk ℂ = Cardinal.mk F) {H : ℂ} (h_alg : IsAlgebraic ℚ H) {b : ℝ} (hb : ∀ ι : ℂ ≃+* F, ‖ι H‖ ≤ exp b) : ‖algebraMap ℚ F (Algebra.norm ℚ (AdjoinSimple.gen ℚ H))‖ ≤ exp (finrank ℚ ℚ⟮H⟯ * b) := by have : NumberField ℚ⟮H⟯ := { to_finiteDimensional := adjoin.finiteDimensional h_alg.isIntegral } -- Each conjugate of `H` in `F` is `ι H` for some isomorphism `ι`. have conj_le (σ : ℚ⟮H⟯ →ₐ[ℚ] F) : ‖σ (gen ℚ H)‖ ≤ exp b := by obtain ⟨ι, hι⟩ : ∃ ι : ℂ ≃+* F, ∀ a : ℚ⟮H⟯, ι a = σ a := exists_ringEquiv_extend hF ℚ⟮H⟯.val.toRingHom σ Subtype.val_injective σ.injective simpa [← hι] using hb ι calc _ = ∏ σ : ℚ⟮H⟯ →ₐ[ℚ] F, ‖σ (gen ℚ H)‖ := by rw [norm_eq_prod_embeddings, norm_prod] _ ≤ ∏ _σ : ℚ⟮H⟯ →ₐ[ℚ] F, exp b := prod_le_prod₀ (fun _ _ ↦ norm_nonneg _) fun σ _ ↦ conj_le σ _ = exp (finrank ℚ ℚ⟮H⟯ * b) := by simp [exp_natCast_mul] /-- If the real parts of the iterates of `x` under each automorphism of `ℂ` over `K` are bounded above, then `x` is algebraic over `K`. A transcendental `x` has an automorphism taking it to `x + 1`, whose iterates take it to `x + n`. -/ lemma isAlgebraic_of_bounded_real_orbits {K : Type*} [Field K] [Algebra K ℂ] {x : ℂ} (h : ∀ σ : ℂ ≃ₐ[K] ℂ, ∃ b : ℝ, ∀ n : ℕ, ((σ ^ n) x).re ≤ b) : IsAlgebraic K x := by by_contra hx obtain ⟨σ, hσ⟩ := (show Transcendental K x from hx).exists_algEquiv_apply_eq_add_one obtain ⟨b, hb⟩ := h σ have shift (n : ℕ) : (σ ^ n) x = x + n := by induction n with | zero => simp | succ n ih => simp [pow_succ', AlgEquiv.mul_apply, ih, hσ, add_comm, add_left_comm] obtain ⟨n, hn⟩ := exists_nat_gt (b - x.re) have hle : x.re + n ≤ b := by simpa only [shift, Complex.add_re, Complex.natCast_re] using hb n linarith /-- If the constant family `1` has height at most `c`, then `0 ≤ c`. This is a form of the product formula. -/ lemma _root_.TauCeti.PrimePadicIso.HeightLe.nonneg_of_one (h_one : HeightLe 1 c) : 0 ≤ c := by -- Let `q` be the norm of `H` from `ℚ(H)` to `ℚ` and `n` the degree. At every place `q` is a -- product of `n` conjugates of `H`, so `log |q| ≤ n α` and `log |q|_l ≤ n (e l) log l`. -- The product formula for `q` then gives `0 ≤ n * c`. obtain ⟨H, hH, α, e, -, hα, he, h_sum⟩ := TauCeti.PrimePadicIso.heightLe_iff.1 h_one -- The archimedean bound already controls every iterate of each automorphism. have h_alg : IsAlgebraic ℚ H := isAlgebraic_of_bounded_real_orbits fun σ ↦ ⟨exp α, fun n ↦ (Complex.re_le_norm _).trans (hα (σ ^ n).toRingEquiv)⟩ have h_padic (l : ℕ) [hl : Fact l.Prime] (ι : ℂ ≃+* PadicAlgCl l) : ‖ι H‖ ≤ exp (e l * log l) := by simpa [rpow_def_of_pos, hl.out.pos, mul_comm] using he ⟨l, ι⟩ have : FiniteDimensional ℚ ℚ⟮H⟯ := adjoin.finiteDimensional h_alg.isIntegral let q : ℚ := Algebra.norm ℚ (gen ℚ H) let n : ℕ := finrank ℚ ℚ⟮H⟯ have hq : q ≠ 0 := norm_ne_zero_iff.2 (by simpa [Subtype.ext_iff] using hH) have h_inf : log q ≤ n * α := by rw [← log_abs, log_le_iff_le_exp (by simpa using hq)] simpa using norm_algebraMap_norm_gen_le rfl h_alg hα have h_fin (l : ℕ) (hl : l.Prime) : log (padicNorm l q) ≤ n * (e l * log l) := by have : Fact l.Prime := ⟨hl⟩ rw [← Padic.eq_padicNorm, log_le_iff_le_exp (norm_pos_iff.2 (Rat.cast_ne_zero.2 hq)), ← PadicAlgCl.norm_extends] exact norm_algebraMap_norm_gen_le mk_complex_eq_mk_padicAlgCl h_alg (h_padic l) -- Sum over the primes below a number `N` that exceeds the numerator and the denominator. let N : ℕ := q.num.natAbs + q.den + 1 refine nonneg_of_mul_nonneg_right ?_ (Nat.cast_pos.2 (finrank_pos : 0 < n)) calc 0 = log q + ∑ l ∈ range N with l.Prime, log (padicNorm l q) := by simpa only [Real.log_abs] using (Rat.log_abs_add_sum_log_padicNorm_eq_zero q (B := N) (by omega) (by omega)).symm _ ≤ n * α + ∑ l ∈ range N with l.Prime, n * (e l * log l) := add_le_add h_inf (sum_le_sum fun l hl ↦ h_fin l (mem_filter.1 hl).2) _ = n * (α + ∑ l ∈ range N with l.Prime, e l * log l) := by rw [mul_add, mul_sum] _ ≤ n * c := mul_le_mul_of_nonneg_left (h_sum _ fun l hl ↦ (mem_filter.1 hl).2) n.cast_nonneg end New