diff --git a/LeanPool/FourExponentials.lean b/LeanPool/FourExponentials.lean index 9e402d9ed4..e1690a2b4f 100644 --- a/LeanPool/FourExponentials.lean +++ b/LeanPool/FourExponentials.lean @@ -23,7 +23,7 @@ MSC: 11J81, 11J85, 68V20 -/ /-! -Ported from `carlok/four-exponentials-palomar` at `8eb91e1` (Apache-2.0). That repository is a +Ported from `carlok/four-exponentials-palomar` at `54998b2` (Apache-2.0). That repository is a self-contained extract, from `carlok/diaz-modulus-lean` at `465147a`, of the three compared theorems and their import closure. Palomar registered the headline theorem as `PALOMAR-2026-11-28-000054` from the separate extract diff --git a/LeanPool/FourExponentials/AuxLinearSystem.lean b/LeanPool/FourExponentials/AuxLinearSystem.lean index ab3644809b..66a77ab2bd 100644 --- a/LeanPool/FourExponentials/AuxLinearSystem.lean +++ b/LeanPool/FourExponentials/AuxLinearSystem.lean @@ -16,6 +16,7 @@ public import Mathlib.Tactic.GCongr public import Mathlib.Tactic.Linarith public import Mathlib.Tactic.Positivity public import Mathlib.Tactic.Ring +public import LeanPool.FourExponentials.AuxLinearSystemColumn /-! # The auxiliary linear system of the four exponentials argument @@ -28,9 +29,13 @@ Write `φ(P) = P(ω, ω₁)` for `P ∈ ℤ[X][Y]`, `S = ⌊N² / √(log N)⌋` For each point `a y₁ + b y₂` and order `m`, `Λ F_q⁽ᵐ⁾(a y₁ + b y₂) = φ(∑ q_{ijkμν} R_{ijkμν})` with a nonzero `Λ` and integer polynomials `R_{ijkμν}` of `Y`-degree below `deg Q` that do not depend on `q`. The equations of the system say that every coefficient of `∑ q_{ijkμν} R_{ijkμν}` -vanishes; then `F_q⁽ᵐ⁾(a y₁ + b y₂) = 0`. With `M = W S` the `X`-degrees stay below `2M`, so there -are at most half as many equations as unknowns; and each coefficient of the system is at most the -length of some `R_{ijkμν}`, hence at most `exp(κ N² √(log N))`. +vanishes; then `F_q⁽ᵐ⁾(a y₁ + b y₂) = 0`. There are at most half as many equations as unknowns, +and each coefficient of the system is at most `exp(κ N² √(log N))`. + +The proof is `aux_linear_system_column`. The presentation of +`exists_iteratedDeriv_reduced_presentation` has `X`-degrees at most `M + c (1 + m + S)`, below the +column bound `M + c (1 + m + S + T a)`, so `ReducedPresentations.mono` turns it into the +hypothesis of the column case. From `Diaz/Mirror/aux_linear_system.lean` of [diaz-modulus-lean](https://github.com/carlok/diaz-modulus-lean) at `465147a`, where it mirrors the @@ -41,23 +46,6 @@ proof accepted on Prove2Me as `FourExp.aux_linear_system`. namespace FourExponentials -namespace AuxLinearSystem - -/-- A single integer coefficient of `P ∈ ℤ[X][Y]` is at most its length. -/ -lemma natAbs_coeff_le_length (P : Polynomial (Polynomial ℤ)) (k i : ℕ) : - ((P.coeff k).coeff i).natAbs ≤ - ∑ k ∈ P.support, ∑ i ∈ (P.coeff k).support, ((P.coeff k).coeff i).natAbs := by - by_cases hk : k ∈ P.support - · by_cases hi : i ∈ (P.coeff k).support - · exact (Finset.single_le_sum (f := fun i => ((P.coeff k).coeff i).natAbs) - (fun _ _ => Nat.zero_le _) hi).trans (Finset.single_le_sum - (f := fun k => ∑ i ∈ (P.coeff k).support, ((P.coeff k).coeff i).natAbs) - (fun _ _ => Nat.zero_le _) hk) - · rw [Polynomial.notMem_support_iff.1 hi]; simp - · rw [Polynomial.notMem_support_iff.1 hk]; simp - -end AuxLinearSystem - open Polynomial /-- **The linear system.** Let $x_1,x_2,y_1,y_2\in\mathbb{C}$ have presentation data, and suppose @@ -69,11 +57,8 @@ $$ F_q^{(m)}(ay_1+by_2)=0\qquad\text{for all }a ∑ μ : Fin M, ∑ ν : Fin Q.natDegree, ((q i j k' μ ν : ℤ) : ℂ) * ω ^ (μ : ℕ) * ω₁ ^ (ν : ℕ)) i j k' * z ^ (i : ℕ) * Complex.exp ((((j : ℕ) : ℂ) * - x₁ + ((k' : ℕ) : ℂ) * x₂) * z)) ((a : ℂ) * y₁ + (b : ℂ) * y₂) = 0 := by - classical - -- The derivatives at the points `a y₁ + b y₂`, as values of polynomials reduced modulo `Q`. - obtain ⟨c, hc⟩ := exists_iteratedDeriv_reduced_presentation x₁ x₂ y₁ y₂ hexp ω ω₁ Q - hQm hQroot D E G H hD hE hG hH - -- `W S` powers of `ω` per unknown leave room for the `X`-degrees of the reduced values. - obtain ⟨W, hW⟩ : ∃ W : ℕ, W = 3 * c + 1 := ⟨_, rfl⟩ - obtain ⟨κ, hκ, hκb⟩ := exists_pow_mul_pow_le_exp_sq_mul_sqrt_log c 2 - refine ⟨W + κ, by positivity, 3, fun N hN => ?_⟩ - have hN3 : 3 ≤ N := by omega - -- The three floors. - have hNr : (3 : ℝ) ≤ N := by exact_mod_cast hN3 - have hL1 : 1 ≤ Real.log N := by - rw [Real.le_log_iff_exp_le (by positivity)] - have := Real.exp_one_lt_d9 - linarith - have hLN : Real.log N ≤ N := by - have := Real.log_le_sub_one_of_pos (by positivity : (0 : ℝ) < N); linarith - have hs1 : 1 ≤ Real.sqrt (Real.log N) := Real.one_le_sqrt.2 hL1 - have hsL : Real.sqrt (Real.log N) ≤ Real.log N := by - have := Real.mul_self_sqrt (by linarith : (0 : ℝ) ≤ Real.log N); nlinarith - have hspos : 0 < Real.sqrt (Real.log N) := by linarith - have hSr : (⌊(N : ℝ) ^ 2 / Real.sqrt (Real.log (N : ℝ))⌋₊ : ℝ) ≤ - (N : ℝ) ^ 2 / Real.sqrt (Real.log N) := Nat.floor_le (by positivity) - have h1r : (⌊(N : ℝ) / Real.sqrt (Real.log (N : ℝ))⌋₊ : ℝ) ≤ (N : ℝ) / Real.sqrt (Real.log N) := - Nat.floor_le (by positivity) - have h2r : (⌊(N : ℝ) * Real.sqrt (Real.log (N : ℝ))⌋₊ : ℝ) ≤ (N : ℝ) * Real.sqrt (Real.log N) := - Nat.floor_le (by positivity) - have hS1 : 1 ≤ ⌊(N : ℝ) ^ 2 / Real.sqrt (Real.log (N : ℝ))⌋₊ := by - apply Nat.le_floor - rw [Nat.cast_one, le_div_iff₀ hspos] - nlinarith - have ht : ⌊(N : ℝ) / Real.sqrt (Real.log (N : ℝ))⌋₊ * ⌊(N : ℝ) * Real.sqrt (Real.log (N : ℝ))⌋₊ - ≤ N ^ 2 := by - have : (⌊(N : ℝ) / Real.sqrt (Real.log (N : ℝ))⌋₊ : ℝ) * - ⌊(N : ℝ) * Real.sqrt (Real.log (N : ℝ))⌋₊ ≤ (N : ℝ) ^ 2 := by - calc _ ≤ ((N : ℝ) / Real.sqrt (Real.log N)) * ((N : ℝ) * Real.sqrt (Real.log N)) := - mul_le_mul h1r h2r (by positivity) (by positivity) - _ = (N : ℝ) ^ 2 := by field_simp - exact_mod_cast this - generalize ⌊(N : ℝ) ^ 2 / Real.sqrt (Real.log (N : ℝ))⌋₊ = S at hSr hS1 ⊢ - generalize ⌊(N : ℝ) / Real.sqrt (Real.log (N : ℝ))⌋₊ = t₁ at h1r ht ⊢ - generalize ⌊(N : ℝ) * Real.sqrt (Real.log (N : ℝ))⌋₊ = t₂ at h2r ht ⊢ - -- The unknowns: `W S` powers of `ω` and `deg Q` powers of `ω₁` per term. - obtain ⟨M, hM⟩ : ∃ M : ℕ, M = W * S := ⟨_, rfl⟩ - -- The reduced values of the unknowns at every point and order. - choose Λ hΛ _hΛn R hRy hRl hRx hRid using fun a b m : ℕ => hc S (2 * N) M a b m - -- The common bound for their `X`-degrees at the orders `m < S`. - obtain ⟨Dx, hDx⟩ : ∃ Dx : ℕ, Dx = M + c * (1 + S + S) := ⟨_, rfl⟩ - have hRx' : ∀ a b m : ℕ, m < S → ∀ i j k μ ν r, - ((R a b m i j k μ ν).coeff r).natDegree ≤ Dx := by - intro a b m hm i j k μ ν r - refine (hRx a b m i j k μ ν r).trans ?_ - rw [hDx] - exact Nat.add_le_add_left (Nat.mul_le_mul_left _ (by omega)) _ - -- The equations: one for each point, order, power of `X` and power of `Y`. - have hcard : Fintype.card (Fin t₁ × Fin t₂ × Fin S × Fin (Dx + 1) × Fin Q.natDegree) = - t₁ * (t₂ * (S * ((Dx + 1) * Q.natDegree))) := by simp - have hDxM : Dx + 1 ≤ 2 * M := by - rw [hDx, hM, hW] - nlinarith [Nat.mul_le_mul_left c hS1] - refine ⟨M, by rw [hM]; exact Nat.mul_pos (by omega) (by omega), ?_, - t₁ * (t₂ * (S * ((Dx + 1) * Q.natDegree))), ?_, - fun e i j k μ ν => (((R ((Fintype.equivFinOfCardEq hcard).symm e).1 - ((Fintype.equivFinOfCardEq hcard).symm e).2.1 ((Fintype.equivFinOfCardEq hcard).symm e).2.2.1 - i j k μ ν).coeff ((Fintype.equivFinOfCardEq hcard).symm e).2.2.2.2).coeff - ((Fintype.equivFinOfCardEq hcard).symm e).2.2.2.1), ?_, ?_⟩ - · -- `M = W S ≤ κ₁ S` - rw [hM]; push_cast - have : (0 : ℝ) ≤ S := by positivity - nlinarith - · -- the number of equations is at most half the number of unknowns - calc 2 * (t₁ * (t₂ * (S * ((Dx + 1) * Q.natDegree)))) - = 2 * (t₁ * t₂) * S * (Dx + 1) * Q.natDegree := by ring - _ ≤ 2 * N ^ 2 * S * (2 * M) * Q.natDegree := by gcongr - _ = S * (2 * N) * (2 * N) * M * Q.natDegree := by ring - · -- each coefficient is at most the length of its reduced value - intro e i j k μ ν - dsimp only - generalize (Fintype.equivFinOfCardEq hcard).symm e = x - obtain ⟨⟨a, ha⟩, ⟨b, hb⟩, ⟨m, hm⟩, ⟨h, hh⟩, ⟨r, hr⟩⟩ := x - change |((((R a b m i j k μ ν).coeff r).coeff h : ℤ) : ℝ)| ≤ _ - rw [← Int.cast_abs, Int.abs_eq_natAbs, Int.cast_natCast] - have hA : (a : ℝ) ≤ ((2 : ℕ) : ℝ) * ((N : ℝ) / Real.sqrt (Real.log (N : ℝ))) := by - have : (a : ℝ) ≤ t₁ := by exact_mod_cast ha.le - have : (0 : ℝ) ≤ (N : ℝ) / Real.sqrt (Real.log (N : ℝ)) := by positivity - push_cast; linarith - have hB : (b : ℝ) ≤ ((2 : ℕ) : ℝ) * ((N : ℝ) * Real.sqrt (Real.log (N : ℝ))) := by - have : (b : ℝ) ≤ t₂ := by exact_mod_cast hb.le - have : (0 : ℝ) ≤ (N : ℝ) * Real.sqrt (Real.log (N : ℝ)) := by positivity - push_cast; linarith - refine (Nat.cast_le.2 ((AuxLinearSystem.natAbs_coeff_le_length _ r h).trans - (hRl a b m i j k μ ν))).trans ?_ - refine (hκb N S (2 * N) a b m hN3 hSr hm.le le_rfl hA hB).trans ?_ - exact Real.exp_le_exp.2 (mul_le_mul_of_nonneg_right (by linarith) (by positivity)) - · -- solutions of the system make the derivatives vanish - intro q hq a b m ha hb hm - have hV : ∑ i : Fin S, ∑ j : Fin (2 * N), ∑ k : Fin (2 * N), ∑ μ : Fin M, - ∑ ν : Fin Q.natDegree, C (C (q i j k μ ν)) * R a b m i j k μ ν = 0 := by - ext r h - simp only [finsetSum_coeff, coeff_C_mul, coeff_zero] - by_cases hr : r < Q.natDegree - · by_cases hh : h < Dx + 1 - · have := hq ((Fintype.equivFinOfCardEq hcard) (⟨a, ha⟩, ⟨b, hb⟩, ⟨m, hm⟩, ⟨h, hh⟩, ⟨r, - hr⟩)) - simp only [Equiv.symm_apply_apply, Fin.val_mk] at this - rw [← this] - refine Finset.sum_congr rfl fun i _ => Finset.sum_congr rfl fun j _ => - Finset.sum_congr rfl fun k _ => Finset.sum_congr rfl fun μ _ => - Finset.sum_congr rfl fun ν _ => mul_comm _ _ - · refine Finset.sum_eq_zero fun i _ => Finset.sum_eq_zero fun j _ => - Finset.sum_eq_zero fun k _ => Finset.sum_eq_zero fun μ _ => - Finset.sum_eq_zero fun ν _ => ?_ - rw [coeff_eq_zero_of_natDegree_lt ((hRx' a b m hm i j k μ ν r).trans_lt (by omega)), - mul_zero] - · refine Finset.sum_eq_zero fun i _ => Finset.sum_eq_zero fun j _ => - Finset.sum_eq_zero fun k _ => Finset.sum_eq_zero fun μ _ => - Finset.sum_eq_zero fun ν _ => ?_ - rw [coeff_eq_zero_of_natDegree_lt ((hRy a b m i j k μ ν).trans_le (by omega)), coeff_zero, - mul_zero] - have h0 := hRid a b m q - rw [hV, eval₂_zero] at h0 - exact (mul_eq_zero.1 h0).resolve_left (hΛ a b m) + x₁ + ((k' : ℕ) : ℂ) * x₂) * z)) ((a : ℂ) * y₁ + (b : ℂ) * y₂) = 0 := + aux_linear_system_column x₁ x₂ y₁ y₂ ω ω₁ Q + (ReducedPresentations.mono (deg := fun S _ _ m => 1 + m + S) + (fun S T a m => Nat.le_add_right (1 + m + S) (T * a)) + (exists_iteratedDeriv_reduced_presentation x₁ x₂ y₁ y₂ hexp ω ω₁ Q hQm hQroot D E G H hD hE hG + hH)) end FourExponentials diff --git a/LeanPool/FourExponentials/AuxLinearSystemColumn.lean b/LeanPool/FourExponentials/AuxLinearSystemColumn.lean index 8f1b3cb0e7..5735e91726 100644 --- a/LeanPool/FourExponentials/AuxLinearSystemColumn.lean +++ b/LeanPool/FourExponentials/AuxLinearSystemColumn.lean @@ -18,13 +18,15 @@ public import Mathlib.Tactic.GCongr public import Mathlib.Tactic.Linarith public import Mathlib.Tactic.Positivity public import Mathlib.Tactic.Ring +public import LeanPool.FourExponentials.ExistsIteratedDerivReducedPresentation /-! # The auxiliary linear system, in the column case -As in `aux_linear_system`, with the reduced presentation of the derivatives as the -hypothesis `hpres`, the conclusion of `exists_iteratedDeriv_reduced_presentation_column`, -whose `X`-degrees are at most `M + c (1 + m + S + T a)`. +The reduced presentation of the derivatives is the hypothesis `hpres`, in the form +`ReducedPresentations` with `X`-degrees at most `M + c (1 + m + S + T a)`: the conclusion of +`exists_iteratedDeriv_reduced_presentation_column`. `aux_linear_system` is the case of the smaller +bound `M + c (1 + m + S)`. Write `φ(P) = P(ω, ω₁)` for `P ∈ ℤ[X][Y]`, `S = ⌊N² / √(log N)⌋`, `t₁ = ⌊N / √(log N)⌋` and `t₂ = ⌊N √(log N)⌋`, and take `T = 2 N`. For each point `a y₁ + b y₂` and order `m`, @@ -47,10 +49,10 @@ proof accepted on Prove2Me as `FourExp.aux_linear_system_column`. namespace FourExponentials -namespace AuxLinearSystemColumn +namespace AuxLinearSystem /-- A single integer coefficient of `P ∈ ℤ[X][Y]` is at most its length. -/ -theorem aux_linear_system_column_natAbs_coeff_le_length (P : Polynomial (Polynomial ℤ)) (k i : ℕ) : +lemma natAbs_coeff_le_length (P : Polynomial (Polynomial ℤ)) (k i : ℕ) : ((P.coeff k).coeff i).natAbs ≤ ∑ k ∈ P.support, ∑ i ∈ (P.coeff k).support, ((P.coeff k).coeff i).natAbs := by by_cases hk : k ∈ P.support @@ -62,33 +64,19 @@ theorem aux_linear_system_column_natAbs_coeff_le_length (P : Polynomial (Polynom · rw [Polynomial.notMem_support_iff.1 hi]; simp · rw [Polynomial.notMem_support_iff.1 hk]; simp -end AuxLinearSystemColumn +end AuxLinearSystem open Polynomial /-- **The linear system, one algebraic column.** Let $x_1,x_2,y_1,y_2,\omega,\omega_1\in\mathbb{C}$ and $Q\in\mathbb{Z}[X][Y]$, and suppose that the derivatives of the functions $F_q$ have reduced -presentations as in the conclusion of Lemma . Then the conclusion of Lemma holds, with $d=\deg_YQ$. +presentations as in the conclusion of +`FourExponentials.exists_iteratedDeriv_reduced_presentation_column`. Then +the conclusion of `FourExponentials.aux_linear_system` holds, with $d=\deg_YQ$. -/ theorem aux_linear_system_column (x₁ x₂ y₁ y₂ : ℂ) (ω ω₁ : ℂ) (Q : Polynomial (Polynomial ℤ)) - (hpres : ∃ c : ℕ, ∀ S T M a b m : ℕ, ∃ Λ : ℂ, Λ ≠ 0 ∧ - ‖Λ‖ ≤ (c : ℝ) ^ (c * (1 + m + S + T * (a + b))) ∧ - ∃ R : Fin S → Fin T → Fin T → Fin M → Fin Q.natDegree → Polynomial (Polynomial ℤ), - (∀ i j k μ ν, (R i j k μ ν).natDegree < Q.natDegree) ∧ - (∀ i j k μ ν, ∑ r ∈ (R i j k μ ν).support, ∑ h ∈ ((R i j k μ ν).coeff r).support, - (((R i j k μ ν).coeff r).coeff h).natAbs ≤ - c ^ (c * (1 + m + S + T * (a + b))) * (1 + m + S + T + a + b) ^ (c * (1 + m + S))) ∧ - (∀ i j k μ ν r, ((R i j k μ ν).coeff r).natDegree ≤ M + c * (1 + m + S + T * a)) ∧ - ∀ q : Fin S → Fin T → Fin T → Fin M → Fin Q.natDegree → ℤ, - Λ * iteratedDeriv m (fun z : ℂ => ∑ i : Fin S, ∑ j : Fin T, ∑ k : Fin T, - (∑ μ : Fin M, ∑ ν : Fin Q.natDegree, - ((q i j k μ ν : ℤ) : ℂ) * ω ^ (μ : ℕ) * ω₁ ^ (ν : ℕ)) * z ^ (i : ℕ) * - Complex.exp ((((j : ℕ) : ℂ) * x₁ + ((k : ℕ) : ℂ) * x₂) * z)) - ((a : ℂ) * y₁ + (b : ℂ) * y₂) = - Polynomial.eval₂ (Polynomial.eval₂RingHom (Int.castRingHom ℂ) ω) ω₁ - (∑ i : Fin S, ∑ j : Fin T, ∑ k : Fin T, ∑ μ : Fin M, ∑ ν : Fin Q.natDegree, - Polynomial.C (Polynomial.C (q i j k μ ν)) * R i j k μ ν)) : + (hpres : ReducedPresentations x₁ x₂ y₁ y₂ ω ω₁ Q (fun S T a m => 1 + m + S + T * a)) : ∃ κ₁ : ℝ, 0 < κ₁ ∧ ∃ N₀ : ℕ, ∀ N : ℕ, N₀ < N → ∃ M : ℕ, 0 < M ∧ (M : ℝ) ≤ κ₁ * ⌊(N : ℝ) ^ 2 / Real.sqrt (Real.log (N : ℝ))⌋₊ ∧ ∃ R : ℕ, 2 * R ≤ ⌊(N : ℝ) ^ 2 / Real.sqrt (Real.log (N : ℝ))⌋₊ * (2 * N) * (2 * N) * M * @@ -109,6 +97,7 @@ theorem aux_linear_system_column (fun i j k' => ∑ μ : Fin M, ∑ ν : Fin Q.natDegree, ((q i j k' μ ν : ℤ) : ℂ) * ω ^ (μ : ℕ) * ω₁ ^ (ν : ℕ)) i j k' * z ^ (i : ℕ) * Complex.exp ((((j : ℕ) : ℂ) * x₁ + ((k' : ℕ) : ℂ) * x₂) * z)) ((a : ℂ) * y₁ + (b : ℂ) * y₂) = 0 := by + simp only [ReducedPresentations] at hpres classical -- The derivatives at the points `a y₁ + b y₂`, as values of polynomials reduced modulo `Q`. obtain ⟨c, hc⟩ := hpres @@ -216,7 +205,7 @@ theorem aux_linear_system_column have : (0 : ℝ) ≤ (N : ℝ) * Real.sqrt (Real.log (N : ℝ)) := by positivity push_cast; linarith refine (Nat.cast_le.2 - ((AuxLinearSystemColumn.aux_linear_system_column_natAbs_coeff_le_length _ r h).trans + ((FourExponentials.AuxLinearSystem.natAbs_coeff_le_length _ r h).trans (hRl a b m i j k μ ν))).trans ?_ refine (hκb N S (2 * N) a b m hN3 hSr hm.le le_rfl hA hB).trans ?_ exact Real.exp_le_exp.2 (mul_le_mul_of_nonneg_right (by linarith) (by positivity)) diff --git a/LeanPool/FourExponentials/AuxiliaryConstruction.lean b/LeanPool/FourExponentials/AuxiliaryConstruction.lean index 0e093bdbfc..d06307926f 100644 --- a/LeanPool/FourExponentials/AuxiliaryConstruction.lean +++ b/LeanPool/FourExponentials/AuxiliaryConstruction.lean @@ -15,12 +15,16 @@ public import Mathlib.Tactic.Positivity /-! # The construction -Let $l_{11},l_{12},l_{21},l_{22}$ satisfy the hypotheses of Lemma . Then there are a transcendental +Let $l_{11},l_{12},l_{21},l_{22}$ satisfy the hypotheses of +`FourExponentials.rank_one_parametrization`. Then +there are a transcendental $\omega$, functions $\sigma_1,\sigma_2$ and constants $a_1,a_2\ge1$ satisfying the hypotheses of -Theorem , and pairs $x_1,x_2$ and $y_1,y_2$, each linearly independent over $\mathbb{Q}$, with the +`FourExponentials.transcendence_criterion`, and pairs $x_1,x_2$ and $y_1,y_2$, each linearly +independent over +$\mathbb{Q}$, with the following property. For every $C$ and every large $N$ there are natural numbers $S,T,R_1,R_2,S'$, coefficients $c(i,j,h)\in\mathbb{C}$ ($i0$ such that -* the inequality of Lemma holds, and +* the inequality of `FourExponentials.nonvanishing_derivative` holds, and * whenever $a0$ such that -* the inequality of Lemma holds, and +* the inequality of `FourExponentials.nonvanishing_derivative` holds, and * whenever $a0$ with the two properties listed in Lemma , for these $x_1,x_2,y_1,y_2$. +not all zero, and $\lambda>0$ with the two properties listed in +`FourExponentials.auxiliary_construction`, for +these $x_1,x_2,y_1,y_2$. -/ theorem auxiliary_construction_column : ∀ x₁ x₂ y₁ y₂ : ℂ, LinearIndependent ℚ ![x₁, x₂] → LinearIndependent ℚ ![y₁, y₂] → diff --git a/LeanPool/FourExponentials/AuxiliaryFunctionAlg.lean b/LeanPool/FourExponentials/AuxiliaryFunctionAlg.lean index feca54278a..19f154c255 100644 --- a/LeanPool/FourExponentials/AuxiliaryFunctionAlg.lean +++ b/LeanPool/FourExponentials/AuxiliaryFunctionAlg.lean @@ -7,6 +7,7 @@ module public import LeanPool.FourExponentials.AuxLinearSystem public import LeanPool.FourExponentials.SiegelAux +public import LeanPool.FourExponentials.AuxiliaryFunctionAlgColumn /-! # The auxiliary function @@ -20,6 +21,9 @@ $$ F_q^{(m)}(ay_1+by_2)=0\qquad\text{for all }a ∑ μ : Fin M, ∑ ν : Fin Q.natDegree, ((q i j k' μ ν : ℤ) : ℂ) * ω ^ (μ : ℕ) * ω₁ ^ (ν : ℕ)) i j k' * z ^ (i : ℕ) * Complex.exp ((((j : ℕ) : ℂ) * - x₁ + ((k' : ℕ) : ℂ) * x₂) * z)) ((a : ℂ) * y₁ + (b : ℂ) * y₂) = 0) := by - obtain ⟨κ₁, hκ₁, N₁, hsys⟩ := aux_linear_system x₁ x₂ y₁ y₂ hexp ω ω₁ hω Q hQm hQd hQroot hQmin - D E G H hD hE hG hH - obtain ⟨κ, hκle, N₂, hsieg⟩ := siegel_aux ω ω₁ Q hQd hQmin κ₁ hκ₁ - refine ⟨κ, lt_of_lt_of_le hκ₁ hκle, max N₁ N₂, fun N hN => ?_⟩ - obtain ⟨M, hM0, hMle, R, hR, B, hBb, hvan⟩ := hsys N (lt_of_le_of_lt (le_max_left _ _) hN) - obtain ⟨q, hBq, hqb, hc0, hcb⟩ := - hsieg N (lt_of_le_of_lt (le_max_right _ _) hN) M hM0 hMle R hR B hBb - exact ⟨M, hMle.trans (mul_le_mul_of_nonneg_right hκle (Nat.cast_nonneg _)), q, hqb, hc0, hcb, - hvan q hBq⟩ + x₁ + ((k' : ℕ) : ℂ) * x₂) * z)) ((a : ℂ) * y₁ + (b : ℂ) * y₂) = 0) := + auxiliary_function_alg_column x₁ x₂ y₁ y₂ ω ω₁ Q hQd hQmin + (ReducedPresentations.mono (deg := fun S _ _ m => 1 + m + S) + (fun S T a m => Nat.le_add_right (1 + m + S) (T * a)) + (exists_iteratedDeriv_reduced_presentation x₁ x₂ y₁ y₂ hexp ω ω₁ Q hQm hQroot D E G H hD hE hG + hH)) end FourExponentials diff --git a/LeanPool/FourExponentials/AuxiliaryFunctionAlgColumn.lean b/LeanPool/FourExponentials/AuxiliaryFunctionAlgColumn.lean index fe5f876a97..3b76c39c6a 100644 --- a/LeanPool/FourExponentials/AuxiliaryFunctionAlgColumn.lean +++ b/LeanPool/FourExponentials/AuxiliaryFunctionAlgColumn.lean @@ -7,11 +7,14 @@ module public import LeanPool.FourExponentials.AuxLinearSystemColumn public import LeanPool.FourExponentials.SiegelAux +public import LeanPool.FourExponentials.ExistsIteratedDerivReducedPresentation /-! # Siegel's auxiliary function, in the column case -As in `auxiliary_function_alg`, in two steps. +The derivatives are presented by the hypothesis `hpres`, in the form `ReducedPresentations`; +`auxiliary_function_alg` is the case of the presentation of +`exists_iteratedDeriv_reduced_presentation`. The proof has two steps. * `aux_linear_system_column` turns the reduced presentation `hpres` into, for large `N`, an `M ≤ κ₁ S` and an integer linear system with at most half as many equations as unknowns and @@ -21,8 +24,7 @@ As in `auxiliary_function_alg`, in two steps. non-zero coefficient `c_{ijk} = ∑ q_{ijkμν} ω^μ ω₁^ν`, and bounds `q` and `c` by `e^(κ N² √(log N))` with `κ ≥ κ₁`. -Taking `N₀` past both thresholds, the auxiliary_function_alg_column `q` gives the auxiliary -function. +Taking `N₀` past both thresholds, the solution `q` gives the auxiliary function. From `Diaz/Mirror/auxiliary_function_alg_column.lean` of [diaz-modulus-lean](https://github.com/carlok/diaz-modulus-lean) at `465147a`, where it mirrors the @@ -37,28 +39,13 @@ namespace FourExponentials $x_1,x_2,y_1,y_2,\omega,\omega_1\in\mathbb{C}$ and $Q\in\mathbb{Z}[X][Y]$ with $d=\deg_YQ\ge1$, such that no non-zero $A\in\mathbb{Z}[X][Y]$ with $\deg_YA ∑ i : Fin S, ∑ j : Fin T, ∑ k : Fin T, - (∑ μ : Fin M, ∑ ν : Fin Q.natDegree, - ((q i j k μ ν : ℤ) : ℂ) * ω ^ (μ : ℕ) * ω₁ ^ (ν : ℕ)) * z ^ (i : ℕ) * - Complex.exp ((((j : ℕ) : ℂ) * x₁ + ((k : ℕ) : ℂ) * x₂) * z)) - ((a : ℂ) * y₁ + (b : ℂ) * y₂) = - Polynomial.eval₂ (Polynomial.eval₂RingHom (Int.castRingHom ℂ) ω) ω₁ - (∑ i : Fin S, ∑ j : Fin T, ∑ k : Fin T, ∑ μ : Fin M, ∑ ν : Fin Q.natDegree, - Polynomial.C (Polynomial.C (q i j k μ ν)) * R i j k μ ν)) : + (hpres : ReducedPresentations x₁ x₂ y₁ y₂ ω ω₁ Q (fun S T a m => 1 + m + S + T * a)) : ∃ κ : ℝ, 0 < κ ∧ ∃ N₀ : ℕ, ∀ N : ℕ, N₀ < N → ∃ M : ℕ, (M : ℝ) ≤ κ * ⌊(N : ℝ) ^ 2 / Real.sqrt (Real.log (N : ℝ))⌋₊ ∧ ∃ q : Fin ⌊(N : ℝ) ^ 2 / Real.sqrt (Real.log (N : ℝ))⌋₊ → Fin (2 * N) → Fin (2 * N) → Fin M → diff --git a/LeanPool/FourExponentials/ConstructionCore1973.lean b/LeanPool/FourExponentials/ConstructionCore1973.lean index 97266a4964..86c31102ed 100644 --- a/LeanPool/FourExponentials/ConstructionCore1973.lean +++ b/LeanPool/FourExponentials/ConstructionCore1973.lean @@ -9,6 +9,7 @@ public import LeanPool.FourExponentials.AuxiliaryFunctionAlg public import LeanPool.FourExponentials.Extrapolation public import LeanPool.FourExponentials.NormToPolynomialAlg public import LeanPool.FourExponentials.TrdegOnePresentation +public import LeanPool.FourExponentials.ConstructionGrowth /-! # The core of the construction @@ -59,20 +60,17 @@ theorem construction_core_1973 c i j k' * z ^ (i : ℕ) * Complex.exp ((((j : ℕ) : ℂ) * x₁ + ((k' : ℕ) : ℂ) * x₂) * z)) ((a : ℂ) * y₁ + (b : ℂ) * y₂) ≠ 0 → ∃ P : Polynomial ℤ, P ≠ 0 ∧ - (∀ i : ℕ, |(P.coeff i : ℝ)| ≤ Real.exp (k * (if (N : ℝ) ≤ 3 then (N : ℝ) - 3 + 9 * - Real.sqrt (Real.log 3) else (N : ℝ) ^ 2 * Real.sqrt (Real.log (N : ℝ))))) ∧ - (P.natDegree : ℝ) ≤ k * (if (N : ℝ) ≤ 3 then (N : ℝ) - 3 + 9 / - Real.sqrt (Real.log 3) else (N : ℝ) ^ 2 / Real.sqrt (Real.log (N : ℝ))) ∧ - ‖Polynomial.aeval ω P‖ < Real.exp (-(C * (k * (if (N : ℝ) ≤ 3 then (N : ℝ) - 3 + 9 * - Real.sqrt (Real.log 3) else (N : ℝ) ^ 2 * Real.sqrt (Real.log (N : ℝ)))) * (k * - (if (N : ℝ) ≤ 3 then (N : ℝ) - 3 + 9 / Real.sqrt (Real.log 3) else (N : ℝ) ^ 2 - / Real.sqrt (Real.log (N : ℝ)))))) := by + (∀ i : ℕ, |(P.coeff i : ℝ)| ≤ Real.exp (k * ConstructionGrowth.A N)) ∧ + (P.natDegree : ℝ) ≤ k * ConstructionGrowth.B N ∧ + ‖Polynomial.aeval ω P‖ < Real.exp (-(C * (k * ConstructionGrowth.A N) * (k * + ConstructionGrowth.B N))) := by + unfold ConstructionGrowth.A ConstructionGrowth.B obtain ⟨ω, ω₁, hω, Q, hQm, hQd, hQroot, hQmin, D, E, G, H, hD, hE, hG, hH⟩ := trdeg_one_presentation x₁ x₂ y₁ y₂ hx hy hexp htr - obtain ⟨κ, hκ, N₃, h3⟩ := auxiliary_function_alg x₁ x₂ y₁ y₂ hexp ω ω₁ hω Q hQm hQd hQroot hQmin + obtain ⟨κ, hκ, N₃, h3⟩ := auxiliary_function_alg x₁ x₂ y₁ y₂ hexp ω ω₁ Q hQm hQd hQroot hQmin D E G H hD hE hG hH obtain ⟨κ', hκ', N₄, h4⟩ := extrapolation x₁ x₂ y₁ y₂ hy κ hκ - obtain ⟨k, hk, h5⟩ := norm_to_polynomial_alg x₁ x₂ y₁ y₂ hexp ω ω₁ hω Q hQm hQd hQroot hQmin + obtain ⟨k, hk, h5⟩ := norm_to_polynomial_alg x₁ x₂ y₁ y₂ hexp ω ω₁ Q hQm hQroot hQmin D E G H hD hE hG hH κ κ' hκ hκ' refine ⟨ω, hω, k, hk, fun C => ?_⟩ obtain ⟨N₅, h5C⟩ := h5 C diff --git a/LeanPool/FourExponentials/ConstructionCoreColumn.lean b/LeanPool/FourExponentials/ConstructionCoreColumn.lean index 669d6dce46..8371a2cc8b 100644 --- a/LeanPool/FourExponentials/ConstructionCoreColumn.lean +++ b/LeanPool/FourExponentials/ConstructionCoreColumn.lean @@ -10,6 +10,7 @@ public import LeanPool.FourExponentials.ExistsIteratedDerivReducedPresentationCo public import LeanPool.FourExponentials.Extrapolation public import LeanPool.FourExponentials.NormToPolynomialAlgColumn public import LeanPool.FourExponentials.TrdegOnePresentationColumn +public import LeanPool.FourExponentials.ConstructionGrowth /-! # The core of the construction, in the column case @@ -37,7 +38,7 @@ proof accepted on Prove2Me as `FourExp.construction_core_column`. namespace FourExponentials /-- **The core of the construction, one algebraic column.** If $x_1,x_2,y_1,y_2$ satisfy the column -hypotheses, then the conclusion of Lemma holds. -/ +hypotheses, then the conclusion of `FourExponentials.construction_core_1973` holds. -/ theorem construction_core_column (x₁ x₂ y₁ y₂ : ℂ) (hx : LinearIndependent ℚ ![x₁, x₂]) (hy : LinearIndependent ℚ ![y₁, y₂]) (hexp₂ : ∀ i : Fin 2, IsAlgebraic ℚ (Complex.exp (![x₁, x₂] i * y₂))) @@ -55,14 +56,11 @@ theorem construction_core_column c i j k' * z ^ (i : ℕ) * Complex.exp ((((j : ℕ) : ℂ) * x₁ + ((k' : ℕ) : ℂ) * x₂) * z)) ((a : ℂ) * y₁ + (b : ℂ) * y₂) ≠ 0 → ∃ P : Polynomial ℤ, P ≠ 0 ∧ - (∀ i : ℕ, |(P.coeff i : ℝ)| ≤ Real.exp (k * (if (N : ℝ) ≤ 3 then (N : ℝ) - 3 + 9 * - Real.sqrt (Real.log 3) else (N : ℝ) ^ 2 * Real.sqrt (Real.log (N : ℝ))))) ∧ - (P.natDegree : ℝ) ≤ k * (if (N : ℝ) ≤ 3 then (N : ℝ) - 3 + 9 / - Real.sqrt (Real.log 3) else (N : ℝ) ^ 2 / Real.sqrt (Real.log (N : ℝ))) ∧ - ‖Polynomial.aeval ω P‖ < Real.exp (-(C * (k * (if (N : ℝ) ≤ 3 then (N : ℝ) - 3 + 9 * - Real.sqrt (Real.log 3) else (N : ℝ) ^ 2 * Real.sqrt (Real.log (N : ℝ)))) * (k * - (if (N : ℝ) ≤ 3 then (N : ℝ) - 3 + 9 / Real.sqrt (Real.log 3) else (N : ℝ) ^ 2 - / Real.sqrt (Real.log (N : ℝ)))))) := by + (∀ i : ℕ, |(P.coeff i : ℝ)| ≤ Real.exp (k * ConstructionGrowth.A N)) ∧ + (P.natDegree : ℝ) ≤ k * ConstructionGrowth.B N ∧ + ‖Polynomial.aeval ω P‖ < Real.exp (-(C * (k * ConstructionGrowth.A N) * (k * + ConstructionGrowth.B N))) := by + unfold ConstructionGrowth.A ConstructionGrowth.B obtain ⟨ω, ω₁, hω, Q, hQm, hQd, hQroot, hQmin, D, E, G, H, hD, hE, hG, hH⟩ := trdeg_one_presentation_column x₁ x₂ y₁ y₂ hx hy hexp₂ htr have hpres := exists_iteratedDeriv_reduced_presentation_column x₁ x₂ y₁ y₂ hexp₂ ω ω₁ diff --git a/LeanPool/FourExponentials/ConstructionCount1973.lean b/LeanPool/FourExponentials/ConstructionCount1973.lean index f776370542..6144118a5c 100644 --- a/LeanPool/FourExponentials/ConstructionCount1973.lean +++ b/LeanPool/FourExponentials/ConstructionCount1973.lean @@ -45,9 +45,9 @@ namespace FourExpCount /-- The counting inequality, as pure algebra. `S`, `t₁`, `t₂`, `d`, `T` stand for the floor quantities, and `W` for `X(Y₁+Y₂)`. -/ lemma count_core (N q S t₁ t₂ d T W : ℝ) (hW : 0 ≤ W) (hq : 40 * (1 + 28 * W) ≤ q) - (hqN : q ^ 2 ≤ N) (hN : 84 ≤ N) (_hS1 : S * q ≤ N ^ 2) (hS2 : N ^ 2 ≤ (S + 1) * q) + (hqN : q ^ 2 ≤ N) (hN : 84 ≤ N) (hS2 : N ^ 2 ≤ (S + 1) * q) (hSone : 1 ≤ S) (ht1 : N - q ≤ q * t₁) (ht2 : N * q - 1 ≤ t₂) (ht1n : 0 ≤ t₁) - (ht2n : 0 ≤ t₂) (hd : S - 1 ≤ 2 * d) (_hdn : 0 ≤ d) (_hTn : 0 ≤ T) + (ht2n : 0 ≤ t₂) (hd : S - 1 ≤ 2 * d) (hT : T * q ^ 2 ≤ 40 * (1 + 28 * W) * N ^ 4) : 80 * N ^ 2 * S + T ≤ 196 * (t₁ * t₂ * d) := by have hq7 : (7:ℝ) ≤ q := by nlinarith @@ -224,8 +224,8 @@ lemma Z_bound (N : ℕ) (X Y₁ Y₂ : ℝ) (hX : 0 ≤ X) (hY₁ : 0 ≤ Y₁) mul_le_mul_of_nonneg_right hsum h1 _ = 28 * (N:ℝ) ^ 3 * (X * (Y₁ + Y₂)) := by ring -lemma T_bound (L u Z W N : ℝ) (hN : 84 ≤ N) (hL : 2 * Real.log N ≤ L) (hu : u ≤ N) (_hu0 : 0 ≤ u) - (hZ : Z ≤ 28 * N ^ 3 * W) (hZ0 : 0 ≤ Z) (_hW : 0 ≤ W) (hlogN : 0 < Real.log N) : +lemma T_bound (L u Z W N : ℝ) (hN : 84 ≤ N) (hL : 2 * Real.log N ≤ L) (hu : u ≤ N) + (hZ : Z ≤ 28 * N ^ 3 * W) (hZ0 : 0 ≤ Z) (hlogN : 0 < Real.log N) : 2 * (1 + u) / ((1 / 20 : ℝ) * L) * (1 + Z) * Real.log N ≤ 40 * (1 + 28 * W) * N ^ 4 := by have hLpos : 0 < L := by linarith have hA : 2 * (1 + u) / ((1 / 20 : ℝ) * L) * Real.log N ≤ 40 * N := by @@ -266,7 +266,7 @@ theorem construction_count_1973 (X Y₁ Y₂ : ℝ) (hX : 0 ≤ X) (hY₁ : 0 have hN84 : 84 ≤ N := by omega have hN84r : (84:ℝ) ≤ (N:ℝ) := by exact_mod_cast hN84 obtain ⟨hq1, hq2, hlogpos, hqN, hqq⟩ := FourExpCount.q_facts N hN84 - obtain ⟨hS1, hS2, hSone, hSN2⟩ := FourExpCount.S_facts N hN84 + obtain ⟨-, hS2, hSone, hSN2⟩ := FourExpCount.S_facts N hN84 obtain ⟨ht1, ht2, ht1u, ht2u⟩ := FourExpCount.t_facts N hN84 obtain ⟨hUeq, hrp, hlogU⟩ := FourExpCount.U_facts N hN84 have hZ := FourExpCount.Z_bound N X Y₁ Y₂ hX hY₁ hY₂ hN84 @@ -293,26 +293,12 @@ theorem construction_count_1973 (X Y₁ Y₂ : ℝ) (hX : 0 ≤ X) (hY₁ : 0 have := mul_nonneg h2 hY₂ have := mul_nonneg h3 hX positivity - have hrp0 : (0:ℝ) ≤ (((⌊(N:ℝ) ^ 2 / Real.sqrt (Real.log (N:ℝ))⌋₊ * (2 * N) * (2 * - N) : ℕ) : ℝ)) ^ (1 / 20 : ℝ) := - Real.rpow_nonneg (Nat.cast_nonneg _) _ have hTq := FourExpCount.T_bound (Real.log (((⌊(N:ℝ) ^ 2 / Real.sqrt (Real.log (N:ℝ))⌋₊ * (2 * N) * (2 * N) : ℕ) : ℝ))) ((((⌊(N:ℝ) ^ 2 / Real.sqrt (Real.log (N:ℝ))⌋₊ * (2 * N) * (2 * N) : ℕ) : ℝ)) ^ (1 / 20 : ℝ)) (((((14 * ⌊(N:ℝ) / Real.sqrt (Real.log (N:ℝ))⌋₊) : ℕ) : ℝ) * Y₁ + (((14 * ⌊(N:ℝ) * Real.sqrt (Real.log (N:ℝ))⌋₊) : ℕ) : ℝ) * Y₂) * ((((2 * N) : ℕ) : ℝ) * X)) - W (N:ℝ) hN84r hlogU hrp hrp0 hZ hZ0 hW0 hlogpos - have hTn : (0:ℝ) ≤ 2 * (1 + (((⌊(N:ℝ) ^ 2 / Real.sqrt (Real.log (N:ℝ))⌋₊ * (2 * N) * (2 * - N) : ℕ) : ℝ)) ^ (1 / 20 : ℝ)) - / ((1 / 20 : ℝ) * Real.log (((⌊(N:ℝ) ^ 2 / Real.sqrt (Real.log (N:ℝ))⌋₊ * (2 * N) * (2 * - N) : ℕ) : ℝ))) - * (1 + ((((14 * ⌊(N:ℝ) / Real.sqrt (Real.log (N:ℝ))⌋₊) : ℕ) : ℝ) * Y₁ - + (((14 * ⌊(N:ℝ) * Real.sqrt (Real.log (N:ℝ))⌋₊) : ℕ) : ℝ) * Y₂) * ((((2 * N) : ℕ) : ℝ) * - X)) := by - have hL : (0:ℝ) < Real.log (((⌊(N:ℝ) ^ 2 / Real.sqrt (Real.log (N:ℝ))⌋₊ * (2 * N) * (2 * - N) : ℕ) : ℝ)) := by - linarith - positivity + W (N:ℝ) hN84r hlogU hrp hZ hZ0 hlogpos have hTq' : (2 * (1 + (((⌊(N:ℝ) ^ 2 / Real.sqrt (Real.log (N:ℝ))⌋₊ * (2 * N) * (2 * N) : ℕ) : ℝ)) ^ (1 / 20 : ℝ)) / ((1 / 20 : ℝ) * Real.log (((⌊(N:ℝ) ^ 2 / Real.sqrt (Real.log (N:ℝ))⌋₊ * (2 * N) * (2 * @@ -335,8 +321,8 @@ theorem construction_count_1973 (X Y₁ Y₂ : ℝ) (hX : 0 ≤ X) (hY₁ : 0 * (1 + ((((14 * ⌊(N:ℝ) / Real.sqrt (Real.log (N:ℝ))⌋₊) : ℕ) : ℝ) * Y₁ + (((14 * ⌊(N:ℝ) * Real.sqrt (Real.log (N:ℝ))⌋₊) : ℕ) : ℝ) * Y₂) * ((((2 * N) : ℕ) : ℝ) * X))) - W hW0 hQ hq2 hN84r hS1 hS2 hSone ht1 ht2 (Nat.cast_nonneg _) (Nat.cast_nonneg _) - (FourExpCount.nat_div_two_ge _) (Nat.cast_nonneg _) hTn hTq' + W hW0 hQ hq2 hN84r hS2 hSone ht1 ht2 (Nat.cast_nonneg _) (Nat.cast_nonneg _) + (FourExpCount.nat_div_two_ge _) hTq' calc ((⌊(N:ℝ) ^ 2 / Real.sqrt (Real.log (N:ℝ))⌋₊ * (2 * N) * (2 * N) : ℕ) : ℝ) / (1 / 20 : ℝ) + 2 * (1 + (((⌊(N:ℝ) ^ 2 / Real.sqrt (Real.log (N:ℝ))⌋₊ * (2 * N) * (2 * N) : ℕ) : ℝ)) ^ (1 / 20 : ℝ)) diff --git a/LeanPool/FourExponentials/ConstructionGrowth.lean b/LeanPool/FourExponentials/ConstructionGrowth.lean index 42a0c75756..ae56c55c34 100644 --- a/LeanPool/FourExponentials/ConstructionGrowth.lean +++ b/LeanPool/FourExponentials/ConstructionGrowth.lean @@ -184,23 +184,11 @@ open ConstructionGrowth in increasing and tend to $+\infty$, and for every $x>0$ $$ \sigma_2(x) \le\sigma_1(x), \qquad\sigma_i(x+1) \le3\,\sigma_i(x)\quad(i =1,2). $$ -/ theorem construction_growth (k : ℝ) (hk : 0 < k) : - StrictMono (fun x : ℝ => k * (if x ≤ 3 then x - 3 + 9 * Real.sqrt (Real.log 3) else x ^ 2 * - Real.sqrt (Real.log x))) ∧ - StrictMono (fun x : ℝ => k * (if x ≤ 3 then x - 3 + 9 / Real.sqrt (Real.log 3) else x ^ 2 / - Real.sqrt (Real.log x))) ∧ - Tendsto (fun x : ℝ => k * (if x ≤ 3 then x - 3 + 9 * Real.sqrt (Real.log 3) else x ^ 2 * - Real.sqrt (Real.log x))) atTop atTop ∧ - Tendsto (fun x : ℝ => k * (if x ≤ 3 then x - 3 + 9 / Real.sqrt (Real.log 3) else x ^ 2 / - Real.sqrt (Real.log x))) atTop atTop ∧ - (∀ x : ℝ, 0 < x → k * (if x ≤ 3 then x - 3 + 9 / Real.sqrt (Real.log 3) else x ^ 2 / - Real.sqrt (Real.log x)) ≤ k * (if x ≤ 3 then x - 3 + 9 * Real.sqrt (Real.log 3) else x ^ 2 * - Real.sqrt (Real.log x))) ∧ - (∀ x : ℝ, 0 < x → k * (if (x + 1) ≤ 3 then (x + 1) - 3 + 9 * Real.sqrt (Real.log 3) else (x + - 1) ^ 2 * Real.sqrt (Real.log (x + 1))) ≤ 3 * (k * (if x ≤ 3 then x - 3 + 9 * - Real.sqrt (Real.log 3) else x ^ 2 * Real.sqrt (Real.log x)))) ∧ - (∀ x : ℝ, 0 < x → k * (if (x + 1) ≤ 3 then (x + 1) - 3 + 9 / Real.sqrt (Real.log 3) else (x + - 1) ^ 2 / Real.sqrt (Real.log (x + 1))) ≤ 3 * (k * (if x ≤ 3 then x - 3 + 9 / - Real.sqrt (Real.log 3) else x ^ 2 / Real.sqrt (Real.log x)))) := by + StrictMono (fun x : ℝ => k * A x) ∧ StrictMono (fun x : ℝ => k * B x) ∧ + Tendsto (fun x : ℝ => k * A x) atTop atTop ∧ Tendsto (fun x : ℝ => k * B x) atTop atTop ∧ + (∀ x : ℝ, 0 < x → k * B x ≤ k * A x) ∧ + (∀ x : ℝ, 0 < x → k * A (x + 1) ≤ 3 * (k * A x)) ∧ + (∀ x : ℝ, 0 < x → k * B (x + 1) ≤ 3 * (k * B x)) := by refine ⟨fun x y h => mul_lt_mul_of_pos_left (strictMono_A h) hk, fun x y h => mul_lt_mul_of_pos_left (strictMono_B h) hk, Filter.Tendsto.const_mul_atTop hk tendsto_A, diff --git a/LeanPool/FourExponentials/ExistsIntPowRepr.lean b/LeanPool/FourExponentials/ExistsIntPowRepr.lean index da0e9d96a6..dbdeee4bc1 100644 --- a/LeanPool/FourExponentials/ExistsIntPowRepr.lean +++ b/LeanPool/FourExponentials/ExistsIntPowRepr.lean @@ -77,7 +77,7 @@ theorem red_natDegree (hd : 0 < m.natDegree) : ∀ n, (red m n).natDegree < m.na show j' = m.natDegree - 1 by omega] ring -theorem aeval_red {K : Type*} [Field K] {α : K} (hα : aeval α m = 0) : +theorem aeval_red {K : Type*} [CommRing K] {α : K} (hα : aeval α m = 0) : ∀ n, aeval α (red m n) = (m.leadingCoeff : K) ^ n * α ^ n | 0 => by rw [red, map_one (aeval (R := ℤ) α), pow_zero, pow_zero, one_mul] | n + 1 => by diff --git a/LeanPool/FourExponentials/ExistsIteratedDerivPresentation.lean b/LeanPool/FourExponentials/ExistsIteratedDerivPresentation.lean index fd689abc0a..d66e7b5915 100644 --- a/LeanPool/FourExponentials/ExistsIteratedDerivPresentation.lean +++ b/LeanPool/FourExponentials/ExistsIteratedDerivPresentation.lean @@ -14,17 +14,17 @@ public import Mathlib.Tactic.Choose public import Mathlib.Tactic.FunProp public import Mathlib.Tactic.Ring public import Mathlib.Tactic.SplitIfs +public import LeanPool.FourExponentials.PresentationSize +public import LeanPool.FourExponentials.ExistsIteratedDerivPresentationOfExpFactor /-! # Integer presentations of the derivatives of the auxiliary exponential polynomial Write `φ(P) = P(ω, ω₁)` for `P ∈ ℤ[X][Y]`, `δ = φ(D)`, `β = j x₁ + k x₂` and `ζ = a y₁ + b y₂`. -* **Leibniz.** `(z^i e^(βz))⁽ᵐ⁾(ζ) = ∑_{l ≤ m} C(m,l) i(i-1)⋯(i-l+1) ζ^(i-l) β^(m-l) e^(βζ)`, - and the `m`-th derivative is linear in the coefficients `f_{ijk}`. -* **Polynomial factors.** Since `δβ = φ(j E₀ + k E₁)` and `δζ = φ(a G₀ + b G₁)`, for `l ≤ i < S` - the number `δ^(m+S) ζ^(i-l) β^(m-l)` is `φ` of - `D^l (j E₀ + k E₁)^(m-l) (a G₀ + b G₁)^(i-l) D^(S-i+l)`. For `l > i` the Leibniz term vanishes. +The Leibniz expansion of the derivatives and the presentation of each of its terms are +`exists_iteratedDeriv_presentation_of_exp_factor`, which needs only a presented exponential factor. + * **Exponential factor.** `e^(βζ) = α₀₀^(ja) α₀₁^(jb) α₁₀^(ka) α₁₁^(kb)` with `α_{pq} = e^(x_p y_q)` algebraic. For each `α_{pq}` there are `ℓ`, `A` and an integer `L ≠ 0` with `Lⁿ αⁿ = ∑_{t<ℓ} r_t α^t` and `|r_t| ≤ Aⁿ`. As `δα = φ(H)`, the number @@ -32,14 +32,13 @@ Write `φ(P) = P(ω, ω₁)` for `P ∈ ℤ[X][Y]`, `δ = φ(D)`, `β = j x₁ + of length at most `|L|^(N-n) ℓ Aⁿ c^(ℓ-1)` and degrees at most `(ℓ-1) c`, where `c` bounds the data. With `N = T(a+b)` the four factors present `Λ' e^(βζ)`, `Λ' = ∏ δ^(ℓ_{pq}-1) L_{pq}^N`, and `Λ = δ^(m+S) Λ'`. -* **Sizes.** Lengths are controlled by `len(PQ) ≤ len(P) len(Q)` and `len(∑ Pᵢ) ≤ ∑ len(Pᵢ)`; the - degrees in `X` and `Y` add up under products. The lengths of the `P_{ijk}` are at most - `K^(4m+S) W^(4(N+1))` with `K = 2(1+m+S+T+a+b)c` and `W` depending only on the data, and their - degrees at most `(2m+S)c + 4W`. +* **Sizes.** The factor has length at most `W^(4(N+1))` and degrees at most `4W`, with `W` + depending only on the data, which gives the bounds of the statement. From `Diaz/Mirror/exists_iteratedDeriv_presentation.lean` of [diaz-modulus-lean](https://github.com/carlok/diaz-modulus-lean) at `465147a`, where it mirrors the -proof accepted on Prove2Me as `FourExp.exists_iteratedDeriv_presentation`. +proof accepted on Prove2Me as `FourExp.exists_iteratedDeriv_presentation`. The accepted proof +repeats the Leibniz expansion; here it is shared with the column case. -/ @[expose] public section @@ -48,107 +47,10 @@ namespace FourExponentials namespace ExistsIteratedDerivPresentation -open Polynomial +open Polynomial PresentationSize /-! ### Length and size of integer polynomials in two variables -/ -/-- The length of `P ∈ ℤ[X][Y]`: the sum of the absolute values of all its integer coefficients. -/ -noncomputable def len (P : ℤ[X][X]) : ℕ := - ∑ r ∈ P.support, ∑ h ∈ (P.coeff r).support, ((P.coeff r).coeff h).natAbs - -lemma len_mul (P Q : ℤ[X][X]) : len (P * Q) ≤ len P * len Q := - Transcendence.length_mul_le P Q - -lemma len_sum {ι : Type*} (s : Finset ι) (f : ι → ℤ[X][X]) : - len (∑ i ∈ s, f i) ≤ ∑ i ∈ s, len (f i) := - Transcendence.length_sum_le s f - -lemma len_add (P Q : ℤ[X][X]) : len (P + Q) ≤ len P + len Q := by - have h := len_sum (Finset.univ : Finset (Fin 2)) ![P, Q] - rw [Fin.sum_univ_two, Fin.sum_univ_two] at h - exact h - -lemma len_CC (z : ℤ) : len (C (C z)) = z.natAbs := by - rcases eq_or_ne z 0 with rfl | hz - · rw [Polynomial.C_0, Polynomial.C_0, len, Polynomial.support_zero, Finset.sum_empty, - Int.natAbs_zero] - · rw [len, Polynomial.support_C (Polynomial.C_ne_zero.2 hz), Finset.sum_singleton, - Polynomial.coeff_C_zero, Polynomial.support_C hz, Finset.sum_singleton, - Polynomial.coeff_C_zero] - -/-- `P` has length at most `b`, and degrees at most `d` in `X` and in `Y`. -/ -def Sz (P : ℤ[X][X]) (b d : ℕ) : Prop := - len P ≤ b ∧ (∀ r, (P.coeff r).natDegree ≤ d) ∧ P.natDegree ≤ d - -lemma sz_mono {P : ℤ[X][X]} {b b' d d' : ℕ} (h : Sz P b d) (hb : b ≤ b') (hd : d ≤ d') : - Sz P b' d' := - ⟨h.1.trans hb, fun r => (h.2.1 r).trans hd, h.2.2.trans hd⟩ - -lemma sz_mul {P Q : ℤ[X][X]} {b₁ b₂ d₁ d₂ : ℕ} (hP : Sz P b₁ d₁) (hQ : Sz Q b₂ d₂) : - Sz (P * Q) (b₁ * b₂) (d₁ + d₂) := by - refine ⟨(len_mul P Q).trans (Nat.mul_le_mul hP.1 hQ.1), fun r => ?_, - Polynomial.natDegree_mul_le.trans (Nat.add_le_add hP.2.2 hQ.2.2)⟩ - rw [Polynomial.coeff_mul] - exact Polynomial.natDegree_sum_le_of_forall_le _ _ fun x _ => - Polynomial.natDegree_mul_le.trans (Nat.add_le_add (hP.2.1 x.1) (hQ.2.1 x.2)) - -lemma sz_add {P Q : ℤ[X][X]} {b₁ b₂ d : ℕ} (hP : Sz P b₁ d) (hQ : Sz Q b₂ d) : - Sz (P + Q) (b₁ + b₂) d := by - refine ⟨(len_add P Q).trans (Nat.add_le_add hP.1 hQ.1), fun r => ?_, - (Polynomial.natDegree_add_le P Q).trans (max_le hP.2.2 hQ.2.2)⟩ - rw [Polynomial.coeff_add] - exact (Polynomial.natDegree_add_le _ _).trans (max_le (hP.2.1 r) (hQ.2.1 r)) - -lemma sz_sum {ι : Type*} (s : Finset ι) (f : ι → ℤ[X][X]) {b d : ℕ} - (h : ∀ i ∈ s, Sz (f i) b d) : Sz (∑ i ∈ s, f i) (s.card * b) d := by - refine ⟨(len_sum s f).trans ?_, fun r => ?_, - Polynomial.natDegree_sum_le_of_forall_le _ _ fun i hi => (h i hi).2.2⟩ - · rw [← smul_eq_mul, ← Finset.sum_const] - exact Finset.sum_le_sum fun i hi => (h i hi).1 - · rw [Polynomial.finsetSum_coeff] - exact Polynomial.natDegree_sum_le_of_forall_le _ _ fun i hi => (h i hi).2.1 r - -lemma sz_CC (z : ℤ) : Sz (C (C z)) z.natAbs 0 := by - refine ⟨(len_CC z).le, fun r => ?_, (Polynomial.natDegree_C _).le⟩ - rw [Polynomial.coeff_C] - split_ifs - · exact (Polynomial.natDegree_C z).le - · exact Polynomial.natDegree_zero.le - -lemma sz_CN (n : ℕ) : Sz (C (C (n : ℤ))) n 0 := - sz_CC (n : ℤ) - -lemma sz_one : Sz 1 1 0 := by - have h := sz_CC 1 - rw [Polynomial.C_1, Polynomial.C_1] at h - exact h - -lemma sz_pow {P : ℤ[X][X]} {b d : ℕ} (h : Sz P b d) : ∀ n : ℕ, Sz (P ^ n) (b ^ n) (n * d) - | 0 => by - rw [pow_zero, pow_zero, Nat.zero_mul] - exact sz_one - | n + 1 => by - rw [pow_succ, pow_succ, Nat.succ_mul] - exact sz_mul (sz_pow h n) h - -lemma sz_exists (P : ℤ[X][X]) : ∃ c, Sz P c c := by - refine ⟨len P + (∑ k ∈ Finset.range (P.natDegree + 1), (P.coeff k).natDegree) + P.natDegree, - by omega, fun r => ?_, by omega⟩ - by_cases hr : r ≤ P.natDegree - · have : (P.coeff r).natDegree ≤ ∑ k ∈ Finset.range (P.natDegree + 1), (P.coeff k).natDegree := - Finset.single_le_sum (f := fun k => (P.coeff k).natDegree) (fun _ _ => Nat.zero_le _) - (Finset.mem_range.2 (Nat.lt_succ_of_le hr)) - omega - · rw [Polynomial.coeff_eq_zero_of_natDegree_lt (not_le.1 hr), Polynomial.natDegree_zero] - exact Nat.zero_le _ - -lemma sz_exists_fam {ι : Type*} [Finite ι] (F : ι → ℤ[X][X]) : ∃ c, ∀ i, Sz (F i) c c := by - have := Fintype.ofFinite ι - choose c hc using fun i => sz_exists (F i) - have hle : ∀ i, c i ≤ ∑ i', c i' := fun i => - Finset.single_le_sum (f := c) (fun _ _ => Nat.zero_le _) (Finset.mem_univ i) - exact ⟨∑ i, c i, fun i => sz_mono (hc i) (hle i) (hle i)⟩ - lemma exists_bound_fin2 (w : Fin 2 → Fin 2 → ℕ) : ∃ W, ∀ p q, w p q ≤ W := ⟨∑ p, ∑ q, w p q, fun p q => (Finset.single_le_sum (f := fun q' => w p q') (fun _ _ => Nat.zero_le _) @@ -156,80 +58,10 @@ lemma exists_bound_fin2 (w : Fin 2 → Fin 2 → ℕ) : ∃ W, ∀ p q, w p q (Finset.single_le_sum (f := fun p' => ∑ q', w p' q') (fun _ _ => Nat.zero_le _) (Finset.mem_univ p))⟩ -lemma succ_le_two_pow : ∀ m : ℕ, m + 1 ≤ 2 ^ m - | 0 => le_rfl - | m + 1 => by - have := succ_le_two_pow m - rw [pow_succ] - omega - /-! ### Values of integer polynomials -/ -lemma phi_CC (φ : ℤ[X][X] →+* ℂ) (z : ℤ) : φ (C (C z)) = (z : ℂ) := - eq_intCast (φ.comp ((C : ℤ[X] →+* ℤ[X][X]).comp (C : ℤ →+* ℤ[X]))) z - -/-- If `u φ(D) = φ(U)` and `v φ(D) = φ(V)`, then `(p u + q v) φ(D) = φ(p U + q V)`. -/ -lemma lin_eval (φ : ℤ[X][X] →+* ℂ) {u v : ℂ} {Dp U V : ℤ[X][X]} (hU : u * φ Dp = φ U) - (hV : v * φ Dp = φ V) (p q : ℕ) : - ((p : ℂ) * u + (q : ℂ) * v) * φ Dp = φ (C (C (p : ℤ)) * U + C (C (q : ℤ)) * V) := by - rw [map_add φ, map_mul φ, map_mul φ, phi_CC φ, phi_CC φ, ← hU, ← hV, Int.cast_natCast, - Int.cast_natCast] - ring - -lemma sz_lin {U V : ℤ[X][X]} {c : ℕ} (hU : Sz U c c) (hV : Sz V c c) (p q : ℕ) : - Sz (C (C (p : ℤ)) * U + C (C (q : ℤ)) * V) ((p + q) * c) c := - sz_mono (sz_add (sz_mul (sz_CN p) hU) (sz_mul (sz_CN q) hV)) (Nat.add_mul p q c).symm.le - (Nat.zero_add c).le - /-! ### The four exponential factors -/ -/-- With `r` the coordinates of `Lⁿ αⁿ` in the basis `1, α, …, α^(ℓ-1)` and `φ(H) = α φ(D)`, this -integer polynomial takes the value `φ(D)^(ℓ-1) Lⁿ αⁿ`. -/ -noncomputable def expPres (ℓ : ℕ) (r : ℕ → ℤ) (Hp Dp : ℤ[X][X]) : ℤ[X][X] := - ∑ t ∈ Finset.range ℓ, C (C (r t)) * Hp ^ t * Dp ^ (ℓ - 1 - t) - -lemma expPres_eval (φ : ℤ[X][X] →+* ℂ) (ℓ : ℕ) (r : ℕ → ℤ) (Hp Dp : ℤ[X][X]) {α : ℂ} - (hH : α * φ Dp = φ Hp) : - φ (expPres ℓ r Hp Dp) = φ Dp ^ (ℓ - 1) * ∑ t ∈ Finset.range ℓ, (r t : ℂ) * α ^ t := by - rw [expPres, map_sum φ, Finset.mul_sum] - refine Finset.sum_congr rfl fun t ht => ?_ - have ht' := Finset.mem_range.1 ht - have hsplit : φ Dp ^ (ℓ - 1) = φ Dp ^ t * φ Dp ^ (ℓ - 1 - t) := by - rw [← pow_add] - congr 1 - omega - rw [map_mul φ, map_mul φ, map_pow φ, map_pow φ, ← hH, phi_CC φ, hsplit, mul_pow] - ring - -lemma sz_expPres (ℓ : ℕ) (r : ℕ → ℤ) {Hp Dp : ℤ[X][X]} {c R : ℕ} (hH : Sz Hp c c) - (hD : Sz Dp c c) (hr : ∀ t, (r t).natAbs ≤ R) : - Sz (expPres ℓ r Hp Dp) (ℓ * (R * c ^ (ℓ - 1))) ((ℓ - 1) * c) := by - have h : Sz (expPres ℓ r Hp Dp) ((Finset.range ℓ).card * (R * c ^ (ℓ - 1))) ((ℓ - 1) * c) := - sz_sum (Finset.range ℓ) _ fun t ht => by - have ht' := Finset.mem_range.1 ht - have he : t + (ℓ - 1 - t) = ℓ - 1 := by omega - refine sz_mono (sz_mul (sz_mul (sz_CC (r t)) (sz_pow hH t)) (sz_pow hD (ℓ - 1 - t))) ?_ ?_ - · rw [Nat.mul_assoc, ← pow_add, he] - exact Nat.mul_le_mul_right _ (hr t) - · rw [Nat.zero_add, ← Nat.add_mul, he] - rw [Finset.card_range] at h - exact h - -/-- `φ(D)^(ℓ-1) L^N αⁿ` as an integer polynomial, for `n ≤ N`. -/ -noncomputable def fac (ℓ : ℕ) (r : ℕ → ℕ → ℤ) (Lc : ℤ) (Hp Dp : ℤ[X][X]) (N n : ℕ) : ℤ[X][X] := - C (C (Lc ^ (N - n))) * expPres ℓ (r n) Hp Dp - -lemma fac_eval (φ : ℤ[X][X] →+* ℂ) (ℓ : ℕ) (r : ℕ → ℕ → ℤ) (Lc : ℤ) (Hp Dp : ℤ[X][X]) {α : ℂ} - (hH : α * φ Dp = φ Hp) - (hr : ∀ n, (Lc : ℂ) ^ n * α ^ n = ∑ t ∈ Finset.range ℓ, (r n t : ℂ) * α ^ t) - {N n : ℕ} (hn : n ≤ N) : - φ (fac ℓ r Lc Hp Dp N n) = φ Dp ^ (ℓ - 1) * (Lc : ℂ) ^ N * α ^ n := by - rw [fac, map_mul φ, phi_CC φ, expPres_eval φ ℓ (r n) Hp Dp hH, ← hr n, Int.cast_pow] - have hsplit : (Lc : ℂ) ^ N = (Lc : ℂ) ^ (N - n) * (Lc : ℂ) ^ n := by - rw [← pow_add, Nat.sub_add_cancel hn] - rw [hsplit] - ring - lemma sz_fac (ℓ : ℕ) (r : ℕ → ℕ → ℤ) (Lc : ℤ) {Hp Dp : ℤ[X][X]} {c A W : ℕ} (hH : Sz Hp c c) (hD : Sz Dp c c) (hr : ∀ n t, (r n t).natAbs ≤ A ^ n) (hW : ℓ * c ^ (ℓ - 1) ≤ W ∧ (ℓ - 1) * c ≤ W ∧ Lc.natAbs ≤ W ∧ A ≤ W) {N n : ℕ} @@ -259,20 +91,6 @@ noncomputable def existsIteratedDerivPresentationLam (δ : ℂ) (ℓ : Fin 2 → δ ^ (ℓ 0 0 - 1) * (L 0 0 : ℂ) ^ N * (δ ^ (ℓ 0 1 - 1) * (L 0 1 : ℂ) ^ N) * (δ ^ (ℓ 1 0 - 1) * (L 1 0 : ℂ) ^ N) * (δ ^ (ℓ 1 1 - 1) * (L 1 1 : ℂ) ^ N) -lemma exp_split (x₁ x₂ y₁ y₂ : ℂ) (a b j k : ℕ) : - Complex.exp (((j : ℂ) * x₁ + (k : ℂ) * x₂) * ((a : ℂ) * y₁ + (b : ℂ) * y₂)) = - Complex.exp (![x₁, x₂] 0 * ![y₁, y₂] 0) ^ (j * a) * - Complex.exp (![x₁, x₂] 0 * ![y₁, y₂] 1) ^ (j * b) * - Complex.exp (![x₁, x₂] 1 * ![y₁, y₂] 0) ^ (k * a) * - Complex.exp (![x₁, x₂] 1 * ![y₁, y₂] 1) ^ (k * b) := by - change _ = Complex.exp (x₁ * y₁) ^ (j * a) * Complex.exp (x₁ * y₂) ^ (j * b) * - Complex.exp (x₂ * y₁) ^ (k * a) * Complex.exp (x₂ * y₂) ^ (k * b) - rw [← Complex.exp_nat_mul, ← Complex.exp_nat_mul, ← Complex.exp_nat_mul, ← Complex.exp_nat_mul, - ← Complex.exp_add, ← Complex.exp_add, ← Complex.exp_add] - congr 1 - push_cast - ring - lemma epart_eval (φ : ℤ[X][X] →+* ℂ) (x₁ x₂ y₁ y₂ : ℂ) (ℓ : Fin 2 → Fin 2 → ℕ) (r : Fin 2 → Fin 2 → ℕ → ℕ → ℤ) (L : Fin 2 → Fin 2 → ℤ) (H : Fin 2 → Fin 2 → ℤ[X][X]) (Dp : ℤ[X][X]) (hH : ∀ p q, Complex.exp (![x₁, x₂] p * ![y₁, y₂] q) * φ Dp = φ (H p q)) @@ -306,15 +124,6 @@ lemma lam_ne_zero {δ : ℂ} (hδ : δ ≠ 0) (ℓ : Fin 2 → Fin 2 → ℕ) {L mul_ne_zero (pow_ne_zero _ hδ) (pow_ne_zero _ (Int.cast_ne_zero.2 (hL p q))) exact mul_ne_zero (mul_ne_zero (mul_ne_zero (hf 0 0) (hf 0 1)) (hf 1 0)) (hf 1 1) -lemma norm_mul_le_pow {x y : ℂ} {C : ℝ} {p q : ℕ} (hx : ‖x‖ ≤ C ^ p) (hy : ‖y‖ ≤ C ^ q) : - ‖x * y‖ ≤ C ^ (p + q) := by - rw [norm_mul, pow_add] - exact mul_le_mul hx hy (norm_nonneg y) ((norm_nonneg x).trans hx) - -lemma norm_pow_le_pow {x : ℂ} {C : ℝ} (hx : ‖x‖ ≤ C) (n : ℕ) : ‖x ^ n‖ ≤ C ^ n := by - rw [norm_pow] - exact pow_le_pow_left₀ (norm_nonneg x) hx n - lemma norm_lam_le {δ : ℂ} {C : ℝ} (hδ : ‖δ‖ ≤ C) (ℓ : Fin 2 → Fin 2 → ℕ) {L : Fin 2 → Fin 2 → ℤ} (hL : ∀ p q, ‖(L p q : ℂ)‖ ≤ C) (N : ℕ) : ‖existsIteratedDerivPresentationLam δ ℓ L N‖ ≤ @@ -323,234 +132,9 @@ lemma norm_lam_le {δ : ℂ} {C : ℝ} (hδ : ‖δ‖ ≤ C) (ℓ : Fin 2 → F norm_mul_le_pow (norm_pow_le_pow hδ _) (norm_pow_le_pow (hL p q) N) exact norm_mul_le_pow (norm_mul_le_pow (norm_mul_le_pow (hf 0 0) (hf 0 1)) (hf 1 0)) (hf 1 1) -/-! ### The presentation of the derivative -/ - -/-- Leibniz's rule for the exponential polynomial, linearly in its coefficients. -/ -lemma iteratedDeriv_expPoly (S T m : ℕ) (x₁ x₂ : ℂ) (f : Fin S → Fin T → Fin T → ℂ) (w : ℂ) : - iteratedDeriv m (fun z : ℂ => ∑ i : Fin S, ∑ j : Fin T, ∑ k : Fin T, - f i j k * z ^ (i : ℕ) * Complex.exp ((((j : ℕ) : ℂ) * x₁ + ((k : ℕ) : ℂ) * x₂) * z)) w = - ∑ i : Fin S, ∑ j : Fin T, ∑ k : Fin T, f i j k * - ∑ l ∈ Finset.range (m + 1), (m.choose l : ℂ) * - (((i : ℕ).descFactorial l : ℂ) * w ^ ((i : ℕ) - l)) * - ((((j : ℕ) : ℂ) * x₁ + ((k : ℕ) : ℂ) * x₂) ^ (m - l) * - Complex.exp ((((j : ℕ) : ℂ) * x₁ + ((k : ℕ) : ℂ) * x₂) * w)) := by - have key : ∀ (i : Fin S) (j k : Fin T), iteratedDeriv m (fun z : ℂ => - f i j k * z ^ (i : ℕ) * Complex.exp ((((j : ℕ) : ℂ) * x₁ + ((k : ℕ) : ℂ) * x₂) * z)) w = - f i j k * ∑ l ∈ Finset.range (m + 1), (m.choose l : ℂ) * - (((i : ℕ).descFactorial l : ℂ) * w ^ ((i : ℕ) - l)) * - ((((j : ℕ) : ℂ) * x₁ + ((k : ℕ) : ℂ) * x₂) ^ (m - l) * - Complex.exp ((((j : ℕ) : ℂ) * x₁ + ((k : ℕ) : ℂ) * x₂) * w)) := by - intro i j k - have h1 : ContDiffAt ℂ m (fun z : ℂ => z ^ (i : ℕ)) w := (contDiff_id.pow _).contDiffAt - have h2 : ContDiffAt ℂ m (fun z : ℂ => - Complex.exp ((((j : ℕ) : ℂ) * x₁ + ((k : ℕ) : ℂ) * x₂) * z)) w := by fun_prop - simp_rw [mul_assoc (f i j k)] - rw [iteratedDeriv_const_mul_field, iteratedDeriv_fun_mul h1 h2] - congr 1 - refine Finset.sum_congr rfl fun l _ => ?_ - rw [iteratedDeriv_pow, iteratedDeriv_cexp_const_mul] - rw [iteratedDeriv_fun_sum (fun i _ => by fun_prop)] - refine Finset.sum_congr rfl fun i _ => ?_ - rw [iteratedDeriv_fun_sum (fun j _ => by fun_prop)] - refine Finset.sum_congr rfl fun j _ => ?_ - rw [iteratedDeriv_fun_sum (fun k _ => by fun_prop)] - exact Finset.sum_congr rfl fun k _ => key i j k - -/-- The integer polynomial `∑_{l ≤ m} C(m,l) i(i-1)⋯(i-l+1) D^l B^(m-l) Z^(i-l) D^(S-i+l) e`. -/ -noncomputable def pres (Dp Bp Zp ep : ℤ[X][X]) (S m i : ℕ) : ℤ[X][X] := - ∑ l ∈ Finset.range (m + 1), C (C ((m.choose l * i.descFactorial l : ℕ) : ℤ)) * - (Dp ^ l * Bp ^ (m - l) * Zp ^ (i - l) * Dp ^ (S - i + l)) * ep - -lemma pres_eval (φ : ℤ[X][X] →+* ℂ) {Dp Bp Zp ep : ℤ[X][X]} {β ζ Λ' e : ℂ} - (hB : β * φ Dp = φ Bp) (hZ : ζ * φ Dp = φ Zp) (he : φ ep = Λ' * e) {S m i : ℕ} (hi : i < S) : - φ (pres Dp Bp Zp ep S m i) = φ Dp ^ (m + S) * Λ' * - ∑ l ∈ Finset.range (m + 1), (m.choose l : ℂ) * ((i.descFactorial l : ℂ) * ζ ^ (i - l)) * - (β ^ (m - l) * e) := by - rw [pres, map_sum φ, Finset.mul_sum] - refine Finset.sum_congr rfl fun l hl => ?_ - have hl' := Finset.mem_range.1 hl - simp only [map_mul φ, map_pow φ] - rw [← hB, ← hZ, he, phi_CC φ, Int.cast_natCast, Nat.cast_mul] - rcases Nat.lt_or_ge i l with h | h - · rw [Nat.descFactorial_eq_zero_iff_lt.2 h, Nat.cast_zero] - ring - · have hδ : φ Dp ^ (m + S) = - φ Dp ^ l * φ Dp ^ (m - l) * φ Dp ^ (i - l) * φ Dp ^ (S - i + l) := by - rw [← pow_add, ← pow_add, ← pow_add] - congr 1 - omega - rw [hδ, mul_pow, mul_pow] - ring - -lemma sz_pres {Dp Bp Zp ep : ℤ[X][X]} {K c E dE S m i : ℕ} (hD : Sz Dp K c) (hB : Sz Bp K c) - (hZ : Sz Zp K c) (he : Sz ep E dE) (hi : i < S) (hK : 2 * (i + 1) ≤ K) : - Sz (pres Dp Bp Zp ep S m i) (K ^ (4 * m + S) * E) ((2 * m + S) * c + dE) := by - have hK0 : 0 < K := by omega - have hcoef : ∀ l, l ≤ m → m.choose l * i.descFactorial l ≤ K ^ m := fun l hl => - calc m.choose l * i.descFactorial l ≤ 2 ^ m * (i + 1) ^ m := - Nat.mul_le_mul (Nat.choose_le_two_pow m l) - ((Nat.descFactorial_le_pow i l).trans ((Nat.pow_le_pow_left (Nat.le_succ i) l).trans - (Nat.pow_le_pow_right (Nat.succ_pos i) hl))) - _ = (2 * (i + 1)) ^ m := (Nat.mul_pow 2 (i + 1) m).symm - _ ≤ K ^ m := Nat.pow_le_pow_left hK m - have h : Sz (pres Dp Bp Zp ep S m i) ((Finset.range (m + 1)).card * (K ^ (3 * m + S) * E)) - ((2 * m + S) * c + dE) := - sz_sum (Finset.range (m + 1)) _ fun l hl => by - have hl' := Finset.mem_range.1 hl - refine sz_mono (sz_mul (sz_mul (sz_CN _) (sz_mul (sz_mul (sz_mul (sz_pow hD l) - (sz_pow hB (m - l))) (sz_pow hZ (i - l))) (sz_pow hD (S - i + l)))) he) ?_ ?_ - · refine Nat.mul_le_mul_right E ?_ - rw [← pow_add, ← pow_add, ← pow_add] - calc m.choose l * i.descFactorial l * K ^ (l + (m - l) + (i - l) + (S - i + l)) - ≤ K ^ m * K ^ (2 * m + S) := - Nat.mul_le_mul (hcoef l (by omega)) (Nat.pow_le_pow_right hK0 (by omega)) - _ = K ^ (3 * m + S) := by rw [← pow_add, show m + (2 * m + S) = 3 * m + S by omega] - · rw [Nat.zero_add, ← Nat.add_mul, ← Nat.add_mul, ← Nat.add_mul] - exact Nat.add_le_add_right (Nat.mul_le_mul_right c (by omega)) dE - refine sz_mono h ?_ le_rfl - rw [Finset.card_range] - calc (m + 1) * (K ^ (3 * m + S) * E) ≤ K ^ m * (K ^ (3 * m + S) * E) := - Nat.mul_le_mul_right _ ((succ_le_two_pow m).trans (Nat.pow_le_pow_left (by omega) m)) - _ = K ^ (4 * m + S) * E := by - rw [← Nat.mul_assoc, ← pow_add, show m + (3 * m + S) = 4 * m + S by omega] - -/-- The polynomial `P_{ijk}`. -/ -noncomputable def Ppol (ℓ : Fin 2 → Fin 2 → ℕ) (r : Fin 2 → Fin 2 → ℕ → ℕ → ℤ) - (L : Fin 2 → Fin 2 → ℤ) (D : ℤ[X][X]) (E G : Fin 2 → ℤ[X][X]) (H : Fin 2 → Fin 2 → ℤ[X][X]) - (S a b m N i j k : ℕ) : ℤ[X][X] := - pres D (C (C (j : ℤ)) * E 0 + C (C (k : ℤ)) * E 1) (C (C (a : ℤ)) * G 0 + C (C (b : ℤ)) * G 1) - (epart ℓ r L H D N a b j k) S m i - -/-- The statement, for an arbitrary ring homomorphism `φ : ℤ[X][Y] → ℂ`. -/ -theorem exists_iteratedDeriv_presentation_main (x₁ x₂ y₁ y₂ : ℂ) - (hexp : ∀ i j : Fin 2, IsAlgebraic ℚ (Complex.exp (![x₁, x₂] i * ![y₁, y₂] j))) - (φ : ℤ[X][X] →+* ℂ) (D : ℤ[X][X]) (E G : Fin 2 → ℤ[X][X]) (H : Fin 2 → Fin 2 → ℤ[X][X]) - (hD : φ D ≠ 0) (hE : ∀ i, ![x₁, x₂] i * φ D = φ (E i)) - (hG : ∀ j, ![y₁, y₂] j * φ D = φ (G j)) - (hH : ∀ i j, Complex.exp (![x₁, x₂] i * ![y₁, y₂] j) * φ D = φ (H i j)) : - ∃ c : ℕ, ∀ S T a b m : ℕ, ∃ Λ : ℂ, Λ ≠ 0 ∧ ‖Λ‖ ≤ (c : ℝ) ^ (c * (1 + m + S + T * (a + b))) ∧ - ∃ P : Fin S → Fin T → Fin T → ℤ[X][X], - (∀ i j k, len (P i j k) ≤ - c ^ (c * (1 + m + S + T * (a + b))) * (1 + m + S + T + a + b) ^ (c * (1 + m + S))) ∧ - (∀ i j k r, ((P i j k).coeff r).natDegree ≤ c * (1 + m + S)) ∧ - (∀ i j k, (P i j k).natDegree ≤ c * (1 + m + S)) ∧ - ∀ f : Fin S → Fin T → Fin T → ℂ, - Λ * iteratedDeriv m (fun z : ℂ => ∑ i : Fin S, ∑ j : Fin T, ∑ k : Fin T, - f i j k * z ^ (i : ℕ) * Complex.exp ((((j : ℕ) : ℂ) * x₁ + ((k : ℕ) : ℂ) * x₂) * z)) - ((a : ℂ) * y₁ + (b : ℂ) * y₂) = - ∑ i : Fin S, ∑ j : Fin T, ∑ k : Fin T, f i j k * φ (P i j k) := by - -- integer relations for the powers of the four algebraic exponentials - choose ℓ A L hL hr using fun p q => Transcendence.exists_int_pow_repr (hexp p q) - choose r hr1 hr2 using hr - -- a common size `c₀` for the data - obtain ⟨cD, hcD⟩ := sz_exists D - obtain ⟨cE, hcE⟩ := sz_exists_fam E - obtain ⟨cG, hcG⟩ := sz_exists_fam G - obtain ⟨cH, hcH⟩ := sz_exists_fam (fun pq : Fin 2 × Fin 2 => H pq.1 pq.2) - obtain ⟨c₀, hc₀⟩ : ∃ c₀, c₀ = cD + cE + cG + cH + 1 := ⟨_, rfl⟩ - have hD0 : Sz D c₀ c₀ := sz_mono hcD (by omega) (by omega) - have hE0 : ∀ p, Sz (E p) c₀ c₀ := fun p => sz_mono (hcE p) (by omega) (by omega) - have hG0 : ∀ q, Sz (G q) c₀ c₀ := fun q => sz_mono (hcG q) (by omega) (by omega) - have hH0 : ∀ p q, Sz (H p q) c₀ c₀ := fun p q => sz_mono (hcH (p, q)) (by omega) (by omega) - -- the constants of the four exponential factors - obtain ⟨W, hW⟩ := exists_bound_fin2 fun p q => - ℓ p q * c₀ ^ (ℓ p q - 1) + (ℓ p q - 1) * c₀ + (L p q).natAbs + A p q + ℓ p q - have hW' : ∀ p q, ℓ p q * c₀ ^ (ℓ p q - 1) ≤ W ∧ (ℓ p q - 1) * c₀ ≤ W ∧ - (L p q).natAbs ≤ W ∧ A p q ≤ W := fun p q => by - have h : ℓ p q * c₀ ^ (ℓ p q - 1) + (ℓ p q - 1) * c₀ + (L p q).natAbs + A p q + ℓ p q ≤ W := - hW p q - exact ⟨by omega, by omega, by omega, by omega⟩ - have hℓW : ∀ p q, ℓ p q ≤ W := fun p q => by - have h : ℓ p q * c₀ ^ (ℓ p q - 1) + (ℓ p q - 1) * c₀ + (L p q).natAbs + A p q + ℓ p q ≤ W := - hW p q - omega - obtain ⟨CL, hCL⟩ := exists_bound_fin2 fun p q => ⌈‖(L p q : ℂ)‖⌉₊ - obtain ⟨c, hc⟩ : ∃ c, c = 4 * (W + c₀ + CL + ⌈‖φ D‖⌉₊ + 1) := ⟨_, rfl⟩ - refine ⟨c, fun S T a b m => ?_⟩ - obtain ⟨N, hN⟩ : ∃ N, N = T * (a + b) := ⟨_, rfl⟩ - obtain ⟨Q, hQ⟩ : ∃ Q, Q = 1 + m + S + T + a + b := ⟨_, rfl⟩ - obtain ⟨K, hK⟩ : ∃ K, K = 2 * Q * c₀ := ⟨_, rfl⟩ - rw [← hN, ← hQ] - -- elementary inequalities - have hQK : 2 * Q ≤ K := by - rw [hK] - calc 2 * Q = 2 * Q * 1 := (Nat.mul_one _).symm - _ ≤ 2 * Q * c₀ := Nat.mul_le_mul_left _ (by omega) - have hc₀K : c₀ ≤ K := by - rw [hK] - calc c₀ = 1 * c₀ := (Nat.one_mul _).symm - _ ≤ 2 * Q * c₀ := Nat.mul_le_mul_right _ (by omega) - have hja : ∀ j : Fin T, (j : ℕ) * a ≤ N := fun j => by - rw [hN]; exact Nat.mul_le_mul j.2.le (Nat.le_add_right a b) - have hjb : ∀ j : Fin T, (j : ℕ) * b ≤ N := fun j => by - rw [hN]; exact Nat.mul_le_mul j.2.le (Nat.le_add_left b a) - -- sizes of the `P_{ijk}` - have hsz : ∀ (i : Fin S) (j k : Fin T), Sz (Ppol ℓ r L D E G H S a b m N i j k) - (K ^ (4 * m + S) * W ^ (4 * (N + 1))) ((2 * m + S) * c₀ + 4 * W) := fun i j k => - sz_pres (sz_mono hD0 hc₀K le_rfl) - (sz_mono (sz_lin (hE0 0) (hE0 1) (j : ℕ) (k : ℕ)) - (by rw [hK]; exact Nat.mul_le_mul_right c₀ (by omega)) le_rfl) - (sz_mono (sz_lin (hG0 0) (hG0 1) a b) - (by rw [hK]; exact Nat.mul_le_mul_right c₀ (by omega)) le_rfl) - (sz_epart ℓ r L A hH0 hD0 hr2 hW' (hja j) (hjb j) (hja k) (hjb k)) i.2 - (by have := i.2; omega) - have hdeg : (2 * m + S) * c₀ + 4 * W ≤ c * (1 + m + S) := by - have e1 : (2 * m + S) * c₀ ≤ (2 * m + 2 * S) * c₀ := Nat.mul_le_mul_right c₀ (by omega) - have e2 : (2 * m + 2 * S) * c₀ = 2 * c₀ * (m + S) := by ring - have e3 : 2 * c₀ * (m + S) ≤ c * (m + S) := Nat.mul_le_mul_right (m + S) (by omega) - have e4 : c * (1 + m + S) = c + c * (m + S) := by ring - omega - refine ⟨φ D ^ (m + S) * existsIteratedDerivPresentationLam (φ D) ℓ L N, - mul_ne_zero (pow_ne_zero _ hD) (lam_ne_zero hD ℓ hL N), - ?_, fun i j k => Ppol ℓ r L D E G H S a b m N i j k, fun i j k => ?_, - fun i j k r' => ((hsz i j k).2.1 r').trans hdeg, fun i j k => (hsz i j k).2.2.trans hdeg, - fun f => ?_⟩ - · -- the size of `Λ` - have h1 : (1 : ℝ) ≤ c := Nat.one_le_cast.2 (by omega) - have hδc : ‖φ D‖ ≤ (c : ℝ) := (Nat.le_ceil _).trans (Nat.cast_le.2 (by omega)) - have hLc : ∀ p q, ‖(L p q : ℂ)‖ ≤ (c : ℝ) := fun p q => - (Nat.le_ceil _).trans (Nat.cast_le.2 ((hCL p q).trans (by omega))) - refine (norm_mul_le_pow (norm_pow_le_pow hδc (m + S)) (norm_lam_le hδc ℓ hLc N)).trans - (pow_le_pow_right₀ h1 ?_) - have e1 : c * (1 + m + S + N) = c + c * (m + S + N) := by ring - have e2 : 4 * (m + S + N) ≤ c * (m + S + N) := Nat.mul_le_mul_right _ (by omega) - have := hℓW 0 0 - have := hℓW 0 1 - have := hℓW 1 0 - have := hℓW 1 1 - omega - · -- the length of `P_{ijk}` - have e1 : 4 * m + S ≤ c * (1 + m + S) := by - have : 4 * (1 + m + S) ≤ c * (1 + m + S) := Nat.mul_le_mul_right _ (by omega) - omega - have e2 : 4 * m + S + 4 * (N + 1) ≤ c * (1 + m + S + N) := by - have : 4 * (1 + m + S + N) ≤ c * (1 + m + S + N) := Nat.mul_le_mul_right _ (by omega) - omega - calc len (Ppol ℓ r L D E G H S a b m N i j k) - ≤ K ^ (4 * m + S) * W ^ (4 * (N + 1)) := (hsz i j k).1 - _ = (2 * c₀) ^ (4 * m + S) * W ^ (4 * (N + 1)) * Q ^ (4 * m + S) := by rw [hK]; ring - _ ≤ c ^ (4 * m + S) * c ^ (4 * (N + 1)) * Q ^ (c * (1 + m + S)) := - Nat.mul_le_mul (Nat.mul_le_mul (Nat.pow_le_pow_left (by omega) _) - (Nat.pow_le_pow_left (by omega) _)) (Nat.pow_le_pow_right (by omega) e1) - _ ≤ c ^ (c * (1 + m + S + N)) * Q ^ (c * (1 + m + S)) := by - rw [← pow_add] - exact Nat.mul_le_mul_right _ (Nat.pow_le_pow_right (by omega) e2) - · -- the identity, by Leibniz's rule - rw [iteratedDeriv_expPoly S T m x₁ x₂ f, Finset.mul_sum] - refine Finset.sum_congr rfl fun i _ => ?_ - rw [Finset.mul_sum] - refine Finset.sum_congr rfl fun j _ => ?_ - rw [Finset.mul_sum] - refine Finset.sum_congr rfl fun k _ => ?_ - dsimp only [Ppol] - rw [pres_eval φ (lin_eval φ (u := x₁) (v := x₂) (hE 0) (hE 1) (j : ℕ) (k : ℕ)) - (lin_eval φ (u := y₁) (v := y₂) (hG 0) (hG 1) a b) - (epart_eval φ x₁ x₂ y₁ y₂ ℓ r L H D hH hr1 (hja j) (hjb j) (hja k) (hjb k)) i.2] - exact mul_left_comm _ _ _ - end ExistsIteratedDerivPresentation -open ExistsIteratedDerivPresentation +open ExistsIteratedDerivPresentation PresentationSize /-- **Derivatives at a grid point, presented.** Let $x_1,x_2,y_1,y_2\in\mathbb{C}$ with every $e^{x_iy_j}$ algebraic. Let $\omega,\omega_1\in\mathbb{C}$, let $\varphi$ be evaluation at @@ -591,7 +175,93 @@ theorem exists_iteratedDeriv_presentation ∑ i : Fin S, ∑ j : Fin T, ∑ k : Fin T, f i j k * Polynomial.eval₂ (Polynomial.eval₂RingHom (Int.castRingHom ℂ) ω) ω₁ (P i j k) := by - exact exists_iteratedDeriv_presentation_main x₁ x₂ y₁ y₂ hexp - (Polynomial.eval₂RingHom (Polynomial.eval₂RingHom (Int.castRingHom ℂ) ω) ω₁) D E G H hD hE hG hH + -- the shared node, and `φ` as a ring homomorphism + obtain ⟨c₁, hSH⟩ := + exists_iteratedDeriv_presentation_of_exp_factor x₁ x₂ y₁ y₂ ω ω₁ D E G hE hG + obtain ⟨φ, hφ⟩ : ∃ φ : Polynomial (Polynomial ℤ) →+* ℂ, ∀ P, + Polynomial.eval₂ (Polynomial.eval₂RingHom (Int.castRingHom ℂ) ω) ω₁ P = φ P := + ⟨Polynomial.eval₂RingHom (Polynomial.eval₂RingHom (Int.castRingHom ℂ) ω) ω₁, fun _ => rfl⟩ + simp only [hφ] at hD hH hSH ⊢ + -- integer relations for the powers of the four algebraic exponentials + choose ℓ A Lc hLc hr using fun p q : Fin 2 => Transcendence.exists_int_pow_repr + (α := Complex.exp (![x₁, x₂] p * ![y₁, y₂] q)) (hexp p q) + choose r hr1 hr2 using hr + -- a common size `c₀` for `D` and `H`, and the constants of the four factors + obtain ⟨cD, hcD⟩ := sz_exists D + obtain ⟨cH, hcH⟩ := sz_exists_fam (fun pq : Fin 2 × Fin 2 => H pq.1 pq.2) + obtain ⟨c₀, hc₀⟩ : ∃ c₀, c₀ = cD + cH + 1 := ⟨_, rfl⟩ + have hD0 : Sz D c₀ c₀ := sz_mono hcD (by omega) (by omega) + have hH0 : ∀ p q, Sz (H p q) c₀ c₀ := fun p q => sz_mono (hcH (p, q)) (by omega) (by omega) + obtain ⟨W, hW⟩ := exists_bound_fin2 fun p q => + ℓ p q * c₀ ^ (ℓ p q - 1) + (ℓ p q - 1) * c₀ + (Lc p q).natAbs + A p q + ℓ p q + have hW' : ∀ p q, ℓ p q * c₀ ^ (ℓ p q - 1) ≤ W ∧ (ℓ p q - 1) * c₀ ≤ W ∧ + (Lc p q).natAbs ≤ W ∧ A p q ≤ W ∧ ℓ p q ≤ W := fun p q => by + have h : ℓ p q * c₀ ^ (ℓ p q - 1) + (ℓ p q - 1) * c₀ + (Lc p q).natAbs + A p q + ℓ p q ≤ W := + hW p q + exact ⟨by omega, by omega, by omega, by omega, by omega⟩ + obtain ⟨CL, hCL⟩ := exists_bound_fin2 fun p q => ⌈‖(Lc p q : ℂ)‖⌉₊ + obtain ⟨c, hc⟩ : ∃ c, c = c₁ + 4 * (W + c₀ + CL + ⌈‖φ D‖⌉₊ + 1) := ⟨_, rfl⟩ + refine ⟨c, fun S T a b m => ?_⟩ + obtain ⟨N, hN⟩ : ∃ N, N = T * (a + b) := ⟨_, rfl⟩ + rw [← hN] + have hja : ∀ j : Fin T, (j : ℕ) * a ≤ N := fun j => by + rw [hN] + exact (Nat.mul_le_mul_right a j.2.le).trans (Nat.mul_le_mul_left T (Nat.le_add_right a b)) + have hjb : ∀ j : Fin T, (j : ℕ) * b ≤ N := fun j => by + rw [hN] + exact (Nat.mul_le_mul_right b j.2.le).trans (Nat.mul_le_mul_left T (Nat.le_add_left b a)) + -- the exponential factor, presented + have hszU : ∀ j k : Fin T, Sz (epart ℓ r Lc H D N a b j k) (W ^ (4 * (N + 1))) (4 * W) := + fun j k => sz_epart ℓ r Lc A hH0 hD0 hr2 + (fun p q => ⟨(hW' p q).1, (hW' p q).2.1, (hW' p q).2.2.1, (hW' p q).2.2.2.1⟩) + (hja j) (hjb j) (hja k) (hjb k) + obtain ⟨P, hPl, hPx, hPy, hPid⟩ := + hSH S T a b m (existsIteratedDerivPresentationLam (φ D) ℓ Lc N) _ _ + (fun j k => epart ℓ r Lc H D N a b j k) (fun j k => (hszU j k).1) + (fun j k => (hszU j k).2.1) (fun j k => (hszU j k).2.2) + (fun j k => epart_eval φ x₁ x₂ y₁ y₂ ℓ r Lc H D hH hr1 (hja j) (hjb j) (hja k) (hjb k)) + have hdeg : c₁ * (1 + m + S) + 4 * W ≤ c * (1 + m + S) := by + have e2 : (c₁ + 4 * W) * (1 + m + S) ≤ c * (1 + m + S) := Nat.mul_le_mul_right _ (by omega) + have e3 : (c₁ + 4 * W) * (1 + m + S) = c₁ * (1 + m + S) + 4 * W * (1 + m + S) := by ring + have e4 : 4 * W ≤ 4 * W * (1 + m + S) := Nat.le_mul_of_pos_right _ (by omega) + omega + refine ⟨φ D ^ (m + S) * existsIteratedDerivPresentationLam (φ D) ℓ Lc N, + mul_ne_zero (pow_ne_zero _ hD) (lam_ne_zero hD ℓ hLc N), ?_, P, fun i j k => ?_, + fun i j k r' => (hPx i j k r').trans hdeg, fun i j k => (hPy i j k).trans hdeg, hPid⟩ + · -- the size of `Λ` + have h1 : (1 : ℝ) ≤ c := Nat.one_le_cast.2 (by omega) + have hδc : ‖φ D‖ ≤ (c : ℝ) := (Nat.le_ceil _).trans (Nat.cast_le.2 (by omega)) + have hLc' : ∀ p q, ‖(Lc p q : ℂ)‖ ≤ (c : ℝ) := fun p q => + (Nat.le_ceil _).trans (Nat.cast_le.2 ((hCL p q).trans (by omega))) + refine (norm_mul_le_pow (norm_pow_le_pow hδc (m + S)) (norm_lam_le hδc ℓ hLc' N)).trans + (pow_le_pow_right₀ h1 ?_) + have e1 : c * (1 + m + S + N) = c + c * (m + S + N) := by ring + have e2 : 4 * (m + S + N) ≤ c * (m + S + N) := Nat.mul_le_mul_right _ (by omega) + have := (hW' 0 0).2.2.2.2 + have := (hW' 0 1).2.2.2.2 + have := (hW' 1 0).2.2.2.2 + have := (hW' 1 1).2.2.2.2 + omega + · -- the length of `P_{ijk}` + have hc1 : 1 ≤ c := by omega + have hY : 1 ≤ 1 + m + S + T + a + b := by omega + have hexp' : c₁ * (1 + m + S) + 4 * (N + 1) ≤ c * (1 + m + S + N) := by + have f1 : c * (1 + m + S + N) = c * (1 + m + S) + c * N := by ring + have f2 : (c₁ + 4) * (1 + m + S) ≤ c * (1 + m + S) := Nat.mul_le_mul_right _ (by omega) + have f3 : (c₁ + 4) * (1 + m + S) = c₁ * (1 + m + S) + 4 * (1 + m + S) := by ring + have f4 : 4 * N ≤ c * N := Nat.mul_le_mul_right _ (by omega) + omega + calc len (P i j k) + ≤ c₁ ^ (c₁ * (1 + m + S)) * (1 + m + S + T + a + b) ^ (c₁ * (1 + m + S)) * + W ^ (4 * (N + 1)) := hPl i j k + _ ≤ c ^ (c₁ * (1 + m + S)) * (1 + m + S + T + a + b) ^ (c * (1 + m + S)) * + c ^ (4 * (N + 1)) := + Nat.mul_le_mul (Nat.mul_le_mul (Nat.pow_le_pow_left (by omega) _) + (Nat.pow_le_pow_right hY (Nat.mul_le_mul_right _ (by omega)))) + (Nat.pow_le_pow_left (by omega) _) + _ = c ^ (c₁ * (1 + m + S) + 4 * (N + 1)) * (1 + m + S + T + a + b) ^ (c * (1 + m + S)) := by + rw [pow_add]; ring + _ ≤ c ^ (c * (1 + m + S + N)) * (1 + m + S + T + a + b) ^ (c * (1 + m + S)) := + Nat.mul_le_mul_right _ (Nat.pow_le_pow_right hc1 hexp') end FourExponentials diff --git a/LeanPool/FourExponentials/ExistsIteratedDerivPresentationColumn.lean b/LeanPool/FourExponentials/ExistsIteratedDerivPresentationColumn.lean index 594d523e07..0eec4581a5 100644 --- a/LeanPool/FourExponentials/ExistsIteratedDerivPresentationColumn.lean +++ b/LeanPool/FourExponentials/ExistsIteratedDerivPresentationColumn.lean @@ -10,6 +10,7 @@ public import LeanPool.FourExponentials.ExistsIteratedDerivPresentationOfExpFact public import Mathlib.Tactic.Choose public import Mathlib.Tactic.Ring public import Mathlib.Tactic.SplitIfs +public import LeanPool.FourExponentials.PresentationSize /-! # Integer presentations of the derivatives, in the column case @@ -42,39 +43,14 @@ namespace FourExponentials namespace ExistsIteratedDerivPresentationColumn -open Polynomial +open Polynomial PresentationSize /-! ### Length and size of integer polynomials in two variables -/ -/-- The length of `P ∈ ℤ[X][Y]`: the sum of the absolute values of all its integer coefficients. -/ -noncomputable def existsIteratedDerivPresentationColumnLen (P : ℤ[X][X]) : ℕ := - ∑ r ∈ P.support, ∑ h ∈ (P.coeff r).support, ((P.coeff r).coeff h).natAbs - -lemma exists_iteratedDeriv_presentation_column_len_CC (z : ℤ) : - existsIteratedDerivPresentationColumnLen (C (C z)) = z.natAbs := by - rcases eq_or_ne z 0 with rfl | hz - · rw [Polynomial.C_0, Polynomial.C_0, existsIteratedDerivPresentationColumnLen, - Polynomial.support_zero, Finset.sum_empty, - Int.natAbs_zero] - · rw [existsIteratedDerivPresentationColumnLen, - Polynomial.support_C (Polynomial.C_ne_zero.2 hz), Finset.sum_singleton, - Polynomial.coeff_C_zero, Polynomial.support_C hz, Finset.sum_singleton, - Polynomial.coeff_C_zero] - -/-- `P` has length at most `b`, and degrees at most `d` in `X` and in `Y`. -/ -def existsIteratedDerivPresentationColumnSz (P : ℤ[X][X]) (b d : ℕ) : Prop := - existsIteratedDerivPresentationColumnLen P ≤ b ∧ (∀ r, - (P.coeff r).natDegree ≤ d) ∧ P.natDegree ≤ d - -lemma exists_iteratedDeriv_presentation_column_sz_mono {P : ℤ[X][X]} {b b' d d' : ℕ} (h : - existsIteratedDerivPresentationColumnSz P b d) (hb : b ≤ b') (hd : d ≤ d') : - existsIteratedDerivPresentationColumnSz P b' d' := - ⟨h.1.trans hb, fun r => (h.2.1 r).trans hd, h.2.2.trans hd⟩ - lemma exists_iteratedDeriv_presentation_column_sz_mul {P Q : ℤ[X][X]} {b₁ b₂ d₁ d₂ : ℕ} (hP : - existsIteratedDerivPresentationColumnSz P b₁ d₁) (hQ : - existsIteratedDerivPresentationColumnSz Q b₂ d₂) : - existsIteratedDerivPresentationColumnSz (P * Q) (b₁ * b₂) (d₁ + d₂) := by + Sz P b₁ d₁) (hQ : + Sz Q b₂ d₂) : + Sz (P * Q) (b₁ * b₂) (d₁ + d₂) := by refine ⟨(Transcendence.length_mul_le P Q).trans (Nat.mul_le_mul hP.1 hQ.1), fun r => ?_, Polynomial.natDegree_mul_le.trans (Nat.add_le_add hP.2.2 hQ.2.2)⟩ rw [Polynomial.coeff_mul] @@ -83,8 +59,8 @@ lemma exists_iteratedDeriv_presentation_column_sz_mul {P Q : ℤ[X][X]} {b₁ b lemma exists_iteratedDeriv_presentation_column_sz_sum {ι : Type*} (s : Finset ι) (f : ι → ℤ[X][X]) {b d : ℕ} - (h : ∀ i ∈ s, existsIteratedDerivPresentationColumnSz (f i) b d) : - existsIteratedDerivPresentationColumnSz (∑ i ∈ s, f i) (s.card * b) d := by + (h : ∀ i ∈ s, Sz (f i) b d) : + Sz (∑ i ∈ s, f i) (s.card * b) d := by refine ⟨(Transcendence.length_sum_le s f).trans ?_, fun r => ?_, Polynomial.natDegree_sum_le_of_forall_le _ _ fun i hi => (h i hi).2.2⟩ · rw [← smul_eq_mul, ← Finset.sum_const] @@ -92,53 +68,6 @@ lemma exists_iteratedDeriv_presentation_column_sz_sum {ι : Type*} (s : Finset · rw [Polynomial.finsetSum_coeff] exact Polynomial.natDegree_sum_le_of_forall_le _ _ fun i hi => (h i hi).2.1 r -lemma exists_iteratedDeriv_presentation_column_sz_CC (z : ℤ) : - existsIteratedDerivPresentationColumnSz (C (C z)) z.natAbs 0 := by - refine ⟨(exists_iteratedDeriv_presentation_column_len_CC z).le, fun r => ?_, - (Polynomial.natDegree_C _).le⟩ - rw [Polynomial.coeff_C] - split_ifs - · exact (Polynomial.natDegree_C z).le - · exact Polynomial.natDegree_zero.le - -lemma exists_iteratedDeriv_presentation_column_sz_one : existsIteratedDerivPresentationColumnSz - 1 1 0 := by - have h := exists_iteratedDeriv_presentation_column_sz_CC 1 - rw [Polynomial.C_1, Polynomial.C_1] at h - exact h - -lemma exists_iteratedDeriv_presentation_column_sz_pow {P : ℤ[X][X]} {b d : ℕ} (h : - existsIteratedDerivPresentationColumnSz P b d) : ∀ n : ℕ, - existsIteratedDerivPresentationColumnSz (P ^ n) (b ^ n) (n * d) - | 0 => by - rw [pow_zero, pow_zero, Nat.zero_mul] - exact exists_iteratedDeriv_presentation_column_sz_one - | n + 1 => by - rw [pow_succ, pow_succ, Nat.succ_mul] - exact exists_iteratedDeriv_presentation_column_sz_mul - (exists_iteratedDeriv_presentation_column_sz_pow h n) h - -lemma exists_iteratedDeriv_presentation_column_sz_exists (P : ℤ[X][X]) : ∃ c, - existsIteratedDerivPresentationColumnSz P c c := by - refine ⟨existsIteratedDerivPresentationColumnLen P + (∑ k ∈ Finset.range (P.natDegree + 1), - (P.coeff k).natDegree) + P.natDegree, - by omega, fun r => ?_, by omega⟩ - by_cases hr : r ≤ P.natDegree - · have : (P.coeff r).natDegree ≤ ∑ k ∈ Finset.range (P.natDegree + 1), (P.coeff k).natDegree := - Finset.single_le_sum (f := fun k => (P.coeff k).natDegree) (fun _ _ => Nat.zero_le _) - (Finset.mem_range.2 (Nat.lt_succ_of_le hr)) - omega - · rw [Polynomial.coeff_eq_zero_of_natDegree_lt (not_le.1 hr), Polynomial.natDegree_zero] - exact Nat.zero_le _ - -lemma exists_iteratedDeriv_presentation_column_sz_exists_fam {ι : Type*} [Finite ι] (F : ι → - ℤ[X][X]) : ∃ c, ∀ i, existsIteratedDerivPresentationColumnSz (F i) c c := by - have := Fintype.ofFinite ι - choose c hc using fun i => exists_iteratedDeriv_presentation_column_sz_exists (F i) - have hle : ∀ i, c i ≤ ∑ i', c i' := fun i => - Finset.single_le_sum (f := c) (fun _ _ => Nat.zero_le _) (Finset.mem_univ i) - exact ⟨∑ i, c i, fun i => exists_iteratedDeriv_presentation_column_sz_mono (hc i) (hle i) (hle i)⟩ - lemma exists_iteratedDeriv_presentation_column_exists_bound_fin2 (w : Fin 2 → ℕ) : ∃ W, ∀ p, w p ≤ W := ⟨∑ p, w p, fun p => Finset.single_le_sum (f := w) (fun _ _ => Nat.zero_le _) (Finset.mem_univ p)⟩ @@ -149,83 +78,17 @@ lemma exists_iteratedDeriv_presentation_column_phi_CC (φ : ℤ[X][X] →+* ℂ) /-! ### The column `y₂`: powers of an algebraic number -/ -/-- With `r` the coordinates of `Lⁿ αⁿ` in the basis `1, α, …, α^(ℓ-1)` and `φ(H) = α φ(D)`, this -integer polynomial takes the value `φ(D)^(ℓ-1) Lⁿ αⁿ`. -/ -noncomputable def existsIteratedDerivPresentationColumnExpPres (ℓ : ℕ) (r : ℕ → - ℤ) (Hp Dp : ℤ[X][X]) : ℤ[X][X] := - ∑ t ∈ Finset.range ℓ, C (C (r t)) * Hp ^ t * Dp ^ (ℓ - 1 - t) - -lemma exists_iteratedDeriv_presentation_column_expPres_eval (φ : ℤ[X][X] →+* ℂ) (ℓ : ℕ) (r : ℕ → - ℤ) (Hp Dp : ℤ[X][X]) {α : ℂ} - (hH : α * φ Dp = φ Hp) : - φ (existsIteratedDerivPresentationColumnExpPres ℓ r Hp Dp) = φ Dp ^ (ℓ - 1) * - ∑ t ∈ Finset.range ℓ, (r t : ℂ) * α ^ t := by - rw [existsIteratedDerivPresentationColumnExpPres, map_sum φ, Finset.mul_sum] - refine Finset.sum_congr rfl fun t ht => ?_ - have ht' := Finset.mem_range.1 ht - have hsplit : φ Dp ^ (ℓ - 1) = φ Dp ^ t * φ Dp ^ (ℓ - 1 - t) := by - rw [← pow_add] - congr 1 - omega - rw [map_mul φ, map_mul φ, map_pow φ, map_pow φ, ← hH, - exists_iteratedDeriv_presentation_column_phi_CC φ, hsplit, mul_pow] - ring - -lemma exists_iteratedDeriv_presentation_column_sz_expPres (ℓ : ℕ) (r : ℕ → - ℤ) {Hp Dp : ℤ[X][X]} {c R : ℕ} (hH : existsIteratedDerivPresentationColumnSz Hp c c) - (hD : existsIteratedDerivPresentationColumnSz Dp c c) (hr : ∀ t, (r t).natAbs ≤ R) : - existsIteratedDerivPresentationColumnSz (existsIteratedDerivPresentationColumnExpPres ℓ - r Hp Dp) (ℓ * (R * c ^ (ℓ - 1))) ((ℓ - 1) * c) := by - have h : existsIteratedDerivPresentationColumnSz - (existsIteratedDerivPresentationColumnExpPres ℓ r Hp Dp) ((Finset.range ℓ).card * (R * - c ^ (ℓ - 1))) ((ℓ - 1) * c) := - exists_iteratedDeriv_presentation_column_sz_sum (Finset.range ℓ) _ fun t ht => by - have ht' := Finset.mem_range.1 ht - have he : t + (ℓ - 1 - t) = ℓ - 1 := by omega - refine exists_iteratedDeriv_presentation_column_sz_mono - (exists_iteratedDeriv_presentation_column_sz_mul - (exists_iteratedDeriv_presentation_column_sz_mul - (exists_iteratedDeriv_presentation_column_sz_CC (r t)) - (exists_iteratedDeriv_presentation_column_sz_pow hH t)) - (exists_iteratedDeriv_presentation_column_sz_pow hD (ℓ - 1 - t))) ?_ ?_ - · rw [Nat.mul_assoc, ← pow_add, he] - exact Nat.mul_le_mul_right _ (hr t) - · rw [Nat.zero_add, ← Nat.add_mul, he] - rw [Finset.card_range] at h - exact h - -/-- `φ(D)^(ℓ-1) L^N αⁿ` as an integer polynomial, for `n ≤ N`. -/ -noncomputable def existsIteratedDerivPresentationColumnFac (ℓ : ℕ) (r : ℕ → ℕ → - ℤ) (Lc : ℤ) (Hp Dp : ℤ[X][X]) (N n : ℕ) : ℤ[X][X] := - C (C (Lc ^ (N - n))) * existsIteratedDerivPresentationColumnExpPres ℓ (r n) Hp Dp - -lemma exists_iteratedDeriv_presentation_column_fac_eval (φ : ℤ[X][X] →+* ℂ) (ℓ : ℕ) (r : ℕ → ℕ → - ℤ) (Lc : ℤ) (Hp Dp : ℤ[X][X]) {α : ℂ} - (hH : α * φ Dp = φ Hp) - (hr : ∀ n, (Lc : ℂ) ^ n * α ^ n = ∑ t ∈ Finset.range ℓ, (r n t : ℂ) * α ^ t) - {N n : ℕ} (hn : n ≤ N) : - φ (existsIteratedDerivPresentationColumnFac ℓ r Lc Hp Dp N n) = φ Dp ^ (ℓ - 1) * - (Lc : ℂ) ^ N * α ^ n := by - rw [existsIteratedDerivPresentationColumnFac, map_mul φ, - exists_iteratedDeriv_presentation_column_phi_CC φ, - exists_iteratedDeriv_presentation_column_expPres_eval φ ℓ (r n) Hp Dp hH, ← hr n, - Int.cast_pow] - have hsplit : (Lc : ℂ) ^ N = (Lc : ℂ) ^ (N - n) * (Lc : ℂ) ^ n := by - rw [← pow_add, Nat.sub_add_cancel hn] - rw [hsplit] - ring - lemma exists_iteratedDeriv_presentation_column_sz_fac (ℓ : ℕ) (r : ℕ → ℕ → ℤ) (Lc : ℤ) {Hp Dp : ℤ[X][X]} {c A W : ℕ} - (hH : existsIteratedDerivPresentationColumnSz Hp c c) (hD : - existsIteratedDerivPresentationColumnSz Dp c c) (hr : ∀ n t, (r n t).natAbs ≤ A ^ n) + (hH : Sz Hp c c) (hD : + Sz Dp c c) (hr : ∀ n t, (r n t).natAbs ≤ A ^ n) (hW : ℓ * c ^ (ℓ - 1) ≤ W ∧ (ℓ - 1) * c ≤ W ∧ Lc.natAbs ≤ W ∧ A ≤ W) {N n : ℕ} - (hn : n ≤ N) : existsIteratedDerivPresentationColumnSz - (existsIteratedDerivPresentationColumnFac ℓ r Lc Hp Dp N n) (W ^ (N + 1)) W := by - refine exists_iteratedDeriv_presentation_column_sz_mono + (hn : n ≤ N) : Sz + (fac ℓ r Lc Hp Dp N n) (W ^ (N + 1)) W := by + refine sz_mono (exists_iteratedDeriv_presentation_column_sz_mul - (exists_iteratedDeriv_presentation_column_sz_CC _) - (exists_iteratedDeriv_presentation_column_sz_expPres ℓ (r n) hH hD (hr n))) ?_ + (sz_CC _) + (sz_expPres ℓ (r n) hH hD (hr n))) ?_ ((Nat.zero_add _).trans_le hW.2.1) rw [Int.natAbs_pow] calc Lc.natAbs ^ (N - n) * (ℓ * (A ^ n * c ^ (ℓ - 1))) @@ -248,14 +111,14 @@ lemma colfac_eval (φ : ℤ[X][X] →+* ℂ) {Hp Dp : ℤ[X][X]} {α : ℂ} (hH rw [colfac, map_mul φ, map_pow φ, map_pow φ, ← hH, mul_pow, hsplit] ring -lemma sz_colfac {Hp Dp : ℤ[X][X]} {c : ℕ} (hH : existsIteratedDerivPresentationColumnSz Hp c c) - (hD : existsIteratedDerivPresentationColumnSz Dp c c) {N n : ℕ} - (hn : n ≤ N) : existsIteratedDerivPresentationColumnSz (colfac Hp Dp N n) (c ^ N) (N * c) := +lemma sz_colfac {Hp Dp : ℤ[X][X]} {c : ℕ} (hH : Sz Hp c c) + (hD : Sz Dp c c) {N n : ℕ} + (hn : n ≤ N) : Sz (colfac Hp Dp N n) (c ^ N) (N * c) := by - refine exists_iteratedDeriv_presentation_column_sz_mono + refine sz_mono (exists_iteratedDeriv_presentation_column_sz_mul - (exists_iteratedDeriv_presentation_column_sz_pow hH n) - (exists_iteratedDeriv_presentation_column_sz_pow hD (N - n))) ?_ ?_ + (sz_pow hH n) + (sz_pow hD (N - n))) ?_ ?_ · rw [← pow_add, Nat.add_sub_of_le hn] · rw [← Nat.add_mul, Nat.add_sub_of_le hn] @@ -265,9 +128,9 @@ lemma sz_colfac {Hp Dp : ℤ[X][X]} {c : ℕ} (hH : existsIteratedDerivPresentat noncomputable def existsIteratedDerivPresentationColumnEpart (ℓ : Fin 2 → ℕ) (r : Fin 2 → ℕ → ℕ → ℤ) (L : Fin 2 → ℤ) (H : Fin 2 → Fin 2 → ℤ[X][X]) (Dp : ℤ[X][X]) (Na N a b j k : ℕ) : ℤ[X][X] := - colfac (H 0 0) Dp Na (j * a) * existsIteratedDerivPresentationColumnFac (ℓ 0) (r 0) (L 0) (H 0 + colfac (H 0 0) Dp Na (j * a) * fac (ℓ 0) (r 0) (L 0) (H 0 1) Dp N (j * b) * - colfac (H 1 0) Dp Na (k * a) * existsIteratedDerivPresentationColumnFac (ℓ 1) (r 1) (L 1) (H + colfac (H 1 0) Dp Na (k * a) * fac (ℓ 1) (r 1) (L 1) (H 1 1) Dp N (k * b) /-- The constant `Λ₁ = δ^(T a) δ^(ℓ₀-1) L₀^N δ^(T a) δ^(ℓ₁-1) L₁^N`. -/ @@ -275,20 +138,6 @@ noncomputable def existsIteratedDerivPresentationColumnLam (δ : ℂ) (ℓ : Fin ℤ) (Na N : ℕ) : ℂ := δ ^ Na * (δ ^ (ℓ 0 - 1) * (L 0 : ℂ) ^ N) * δ ^ Na * (δ ^ (ℓ 1 - 1) * (L 1 : ℂ) ^ N) -lemma exists_iteratedDeriv_presentation_column_exp_split (x₁ x₂ y₁ y₂ : ℂ) (a b j k : ℕ) : - Complex.exp (((j : ℂ) * x₁ + (k : ℂ) * x₂) * ((a : ℂ) * y₁ + (b : ℂ) * y₂)) = - Complex.exp (![x₁, x₂] 0 * ![y₁, y₂] 0) ^ (j * a) * - Complex.exp (![x₁, x₂] 0 * ![y₁, y₂] 1) ^ (j * b) * - Complex.exp (![x₁, x₂] 1 * ![y₁, y₂] 0) ^ (k * a) * - Complex.exp (![x₁, x₂] 1 * ![y₁, y₂] 1) ^ (k * b) := by - change _ = Complex.exp (x₁ * y₁) ^ (j * a) * Complex.exp (x₁ * y₂) ^ (j * b) * - Complex.exp (x₂ * y₁) ^ (k * a) * Complex.exp (x₂ * y₂) ^ (k * b) - rw [← Complex.exp_nat_mul, ← Complex.exp_nat_mul, ← Complex.exp_nat_mul, ← Complex.exp_nat_mul, - ← Complex.exp_add, ← Complex.exp_add, ← Complex.exp_add] - congr 1 - push_cast - ring - lemma exists_iteratedDeriv_presentation_column_epart_eval (φ : ℤ[X][X] →+* ℂ) (x₁ x₂ y₁ y₂ : ℂ) (ℓ : Fin 2 → ℕ) (r : Fin 2 → ℕ → ℕ → ℤ) (L : Fin 2 → ℤ) (H : Fin 2 → Fin 2 → ℤ[X][X]) (Dp : ℤ[X][X]) @@ -301,30 +150,30 @@ lemma exists_iteratedDeriv_presentation_column_epart_eval (φ : ℤ[X][X] →+* Complex.exp (((j : ℂ) * x₁ + (k : ℂ) * x₂) * ((a : ℂ) * y₁ + (b : ℂ) * y₂)) := by rw [existsIteratedDerivPresentationColumnEpart, map_mul φ, map_mul φ, map_mul φ, colfac_eval φ (hH 0 0) h1, - exists_iteratedDeriv_presentation_column_fac_eval φ _ _ _ _ _ (hH 0 1) (hr 0) h2, + fac_eval φ _ _ _ _ _ (hH 0 1) (hr 0) h2, colfac_eval φ (hH 1 0) h3, - exists_iteratedDeriv_presentation_column_fac_eval φ _ _ _ _ _ (hH 1 1) (hr 1) h4, - exists_iteratedDeriv_presentation_column_exp_split x₁ x₂ y₁ y₂ a b j k, + fac_eval φ _ _ _ _ _ (hH 1 1) (hr 1) h4, + exp_split x₁ x₂ y₁ y₂ a b j k, existsIteratedDerivPresentationColumnLam] ring lemma exists_iteratedDeriv_presentation_column_sz_epart (ℓ : Fin 2 → ℕ) (r : Fin 2 → ℕ → ℕ → ℤ) (L : Fin 2 → ℤ) (A : Fin 2 → ℕ) {H : Fin 2 → Fin 2 → ℤ[X][X]} {Dp : ℤ[X][X]} {c W : ℕ} - (hH : ∀ p q, existsIteratedDerivPresentationColumnSz (H p q) c c) (hD : - existsIteratedDerivPresentationColumnSz Dp c c) (hr : ∀ p n t, (r p n t).natAbs ≤ + (hH : ∀ p q, Sz (H p q) c c) (hD : + Sz Dp c c) (hr : ∀ p n t, (r p n t).natAbs ≤ A p ^ n) (hW : ∀ p, ℓ p * c ^ (ℓ p - 1) ≤ W ∧ (ℓ p - 1) * c ≤ W ∧ (L p).natAbs ≤ W ∧ A p ≤ W) {Na N a b j k : ℕ} (h1 : j * a ≤ Na) (h2 : j * b ≤ N) (h3 : k * a ≤ Na) (h4 : k * b ≤ N) : - existsIteratedDerivPresentationColumnSz (existsIteratedDerivPresentationColumnEpart ℓ r + Sz (existsIteratedDerivPresentationColumnEpart ℓ r L H Dp Na N a b j k) (c ^ (2 * Na) * W ^ (2 * (N + 1))) (2 * (Na * c) + 2 * W) := by - have hf : ∀ p n, n ≤ N → existsIteratedDerivPresentationColumnSz - (existsIteratedDerivPresentationColumnFac (ℓ p) (r p) (L p) (H p 1) Dp N n) (W ^ (N + + have hf : ∀ p n, n ≤ N → Sz + (fac (ℓ p) (r p) (L p) (H p 1) Dp N n) (W ^ (N + 1)) W := fun p n hn => exists_iteratedDeriv_presentation_column_sz_fac (ℓ p) (r p) (L p) (hH p 1) hD (hr p) (hW p) hn - exact exists_iteratedDeriv_presentation_column_sz_mono + exact sz_mono (exists_iteratedDeriv_presentation_column_sz_mul (exists_iteratedDeriv_presentation_column_sz_mul (exists_iteratedDeriv_presentation_column_sz_mul (sz_colfac (hH 0 0) hD h1) (hf 0 _ @@ -338,42 +187,34 @@ lemma exists_iteratedDeriv_presentation_column_lam_ne_zero {δ : ℂ} (hδ : δ mul_ne_zero (pow_ne_zero _ hδ) (pow_ne_zero _ (Int.cast_ne_zero.2 (hL p))) exact mul_ne_zero (mul_ne_zero (mul_ne_zero (pow_ne_zero _ hδ) (hf 0)) (pow_ne_zero _ hδ)) (hf 1) -lemma exists_iteratedDeriv_presentation_column_norm_mul_le_pow {x y : ℂ} {C : ℝ} {p q : ℕ} (hx : ‖x‖ - ≤ C ^ p) (hy : ‖y‖ ≤ C ^ q) : - ‖x * y‖ ≤ C ^ (p + q) := by - rw [norm_mul, pow_add] - exact mul_le_mul hx hy (norm_nonneg y) ((norm_nonneg x).trans hx) - -lemma exists_iteratedDeriv_presentation_column_norm_pow_le_pow {x : ℂ} {C : ℝ} (hx : ‖x‖ ≤ - C) (n : ℕ) : ‖x ^ n‖ ≤ C ^ n := by - rw [norm_pow] - exact pow_le_pow_left₀ (norm_nonneg x) hx n - lemma exists_iteratedDeriv_presentation_column_norm_lam_le {δ : ℂ} {C : ℝ} (hδ : ‖δ‖ ≤ C) (ℓ : Fin 2 → ℕ) {L : Fin 2 → ℤ} (hL : ∀ p, ‖(L p : ℂ)‖ ≤ C) (Na N : ℕ) : ‖existsIteratedDerivPresentationColumnLam δ ℓ L Na N‖ ≤ C ^ (Na + (ℓ 0 - 1 + N) + Na + (ℓ 1 - 1 + N)) := by have hf : ∀ p, ‖δ ^ (ℓ p - 1) * (L p : ℂ) ^ N‖ ≤ C ^ (ℓ p - 1 + N) := fun p => - exists_iteratedDeriv_presentation_column_norm_mul_le_pow - (exists_iteratedDeriv_presentation_column_norm_pow_le_pow hδ _) - (exists_iteratedDeriv_presentation_column_norm_pow_le_pow (hL p) N) - exact exists_iteratedDeriv_presentation_column_norm_mul_le_pow - (exists_iteratedDeriv_presentation_column_norm_mul_le_pow - (exists_iteratedDeriv_presentation_column_norm_mul_le_pow - (exists_iteratedDeriv_presentation_column_norm_pow_le_pow hδ Na) (hf 0)) - (exists_iteratedDeriv_presentation_column_norm_pow_le_pow hδ Na)) (hf 1) + norm_mul_le_pow + (norm_pow_le_pow hδ _) + (norm_pow_le_pow (hL p) N) + exact norm_mul_le_pow + (norm_mul_le_pow + (norm_mul_le_pow + (norm_pow_le_pow hδ Na) (hf 0)) + (norm_pow_le_pow hδ Na)) (hf 1) end ExistsIteratedDerivPresentationColumn -open ExistsIteratedDerivPresentationColumn in +open ExistsIteratedDerivPresentationColumn PresentationSize in /-- **Derivatives at a grid point, one algebraic column.** Let $x_1,x_2,y_1,y_2\in\mathbb{C}$ with $e^{x_1y_2}$ and $e^{x_2y_2}$ algebraic, and let $\omega,\omega_1$, $\varphi$ and $D,E_i,G_j,H_{ij}$ -be as in Lemma . There is $c\in\mathbb{N}$ such that for all $S,T,a,b,m\in\mathbb{N}$ there are +be as in `FourExponentials.exists_iteratedDeriv_presentation`. There is $c\in\mathbb{N}$ such that +for all +$S,T,a,b,m\in\mathbb{N}$ there are $\Lambda\neq0$ with $|\Lambda|\le c^{\,c(1+m+S+T(a+b))}$ and $P_{ijh}\in\mathbb{Z}[X][Y]$ ($i H pq.1 pq.2) obtain ⟨c₀, hc₀⟩ : ∃ c₀, c₀ = cD + cH + 1 := ⟨_, rfl⟩ - have hD0 : existsIteratedDerivPresentationColumnSz D c₀ c₀ := - exists_iteratedDeriv_presentation_column_sz_mono hcD (by omega) (by omega) - have hH0 : ∀ p q, existsIteratedDerivPresentationColumnSz (H p q) c₀ c₀ := - fun p q => exists_iteratedDeriv_presentation_column_sz_mono (hcH (p, q)) (by omega) (by omega) + have hD0 : Sz D c₀ c₀ := + sz_mono hcD (by omega) (by omega) + have hH0 : ∀ p q, Sz (H p q) c₀ c₀ := + fun p q => sz_mono (hcH (p, q)) (by omega) (by omega) obtain ⟨W, hW⟩ := exists_iteratedDeriv_presentation_column_exists_bound_fin2 fun p => ℓ p * c₀ ^ (ℓ p - 1) + (ℓ p - 1) * c₀ + (Lc p).natAbs + A p + ℓ p have hW' : ∀ p, ℓ p * c₀ ^ (ℓ p - 1) ≤ W ∧ (ℓ p - 1) * c₀ ≤ W ∧ (Lc p).natAbs ≤ W ∧ @@ -438,7 +279,7 @@ theorem exists_iteratedDeriv_presentation_column have hja : ∀ j : Fin T, (j : ℕ) * a ≤ Na := fun j => hNa ▸ Nat.mul_le_mul_right a j.2.le have hjb : ∀ j : Fin T, (j : ℕ) * b ≤ N := fun j => hN ▸ Nat.mul_le_mul_right b j.2.le -- the exponential factor, presented - have hszU : ∀ j k : Fin T, existsIteratedDerivPresentationColumnSz + have hszU : ∀ j k : Fin T, Sz (existsIteratedDerivPresentationColumnEpart ℓ r Lc H D Na N a b j k) (c₀ ^ (2 * Na) * W ^ (2 * (N + 1))) (2 * (Na * c₀) + 2 * W) := fun j k => exists_iteratedDeriv_presentation_column_sz_epart ℓ r Lc A hH0 hD0 hr2 @@ -468,8 +309,8 @@ theorem exists_iteratedDeriv_presentation_column have hδc : ‖φ D‖ ≤ (c : ℝ) := (Nat.le_ceil _).trans (Nat.cast_le.2 (by omega)) have hLc' : ∀ p, ‖(Lc p : ℂ)‖ ≤ (c : ℝ) := fun p => (Nat.le_ceil _).trans (Nat.cast_le.2 ((hCL p).trans (by omega))) - refine (exists_iteratedDeriv_presentation_column_norm_mul_le_pow - (exists_iteratedDeriv_presentation_column_norm_pow_le_pow hδc (m + + refine (norm_mul_le_pow + (norm_pow_le_pow hδc (m + S)) (exists_iteratedDeriv_presentation_column_norm_lam_le hδc ℓ hLc' Na N)).trans (pow_le_pow_right₀ h1 ?_) have e1 : c * (1 + m + S + (Na + N)) = c + c * (m + S + Na + N) := by ring @@ -486,7 +327,7 @@ theorem exists_iteratedDeriv_presentation_column have f3 : (c₁ + 2) * (1 + m + S) = c₁ * (1 + m + S) + 2 * (1 + m + S) := by ring have f4 : 2 * (Na + N) ≤ c * (Na + N) := Nat.mul_le_mul_right _ (by omega) omega - calc existsIteratedDerivPresentationColumnLen (P i j k) + calc len (P i j k) ≤ c₁ ^ (c₁ * (1 + m + S)) * (1 + m + S + T + a + b) ^ (c₁ * (1 + m + S)) * (c₀ ^ (2 * Na) * W ^ (2 * (N + 1))) := hPl i j k _ ≤ c ^ (c₁ * (1 + m + S)) * (1 + m + S + T + a + b) ^ (c * (1 + m + S)) * diff --git a/LeanPool/FourExponentials/ExistsIteratedDerivPresentationOfExpFactor.lean b/LeanPool/FourExponentials/ExistsIteratedDerivPresentationOfExpFactor.lean index 019781454d..d52bde9ccd 100644 --- a/LeanPool/FourExponentials/ExistsIteratedDerivPresentationOfExpFactor.lean +++ b/LeanPool/FourExponentials/ExistsIteratedDerivPresentationOfExpFactor.lean @@ -14,6 +14,7 @@ public import Mathlib.Tactic.Choose public import Mathlib.Tactic.FunProp public import Mathlib.Tactic.Ring public import Mathlib.Tactic.SplitIfs +public import LeanPool.FourExponentials.PresentationSize /-! # Integer presentations of the derivatives, from a presented exponential factor @@ -28,11 +29,11 @@ length at most `L` and degrees at most `d`. the number `δ^(m+S) ζ^(i-l) β^(m-l) Λ₁ e^(βζ)` is `φ` of `D^l (j E₀ + k E₁)^(m-l) (a G₀ + b G₁)^(i-l) D^(S-i+l) U_{jk}`. For `l > i` the Leibniz term vanishes. -* **Sizes.** Lengths are controlled by `existsIteratedDerivPresentationOfExpFactorLen(PQ) ≤ - existsIteratedDerivPresentationOfExpFactorLen(P) - existsIteratedDerivPresentationOfExpFactorLen(Q)` and - `existsIteratedDerivPresentationOfExpFactorLen(∑ Pᵢ) ≤ ∑ - existsIteratedDerivPresentationOfExpFactorLen(Pᵢ)`; the +* **Sizes.** Lengths are controlled by `len(PQ) ≤ + len(P) + len(Q)` and + `len(∑ Pᵢ) ≤ ∑ + len(Pᵢ)`; the degrees in `X` and `Y` add up under products. If `c₀` bounds the lengths and degrees of `D`, `E` and `G`, the lengths of the `P_{ijk}` are at most `K^(4m+S) L` with `K = 2(1+m+S+T+a+b)c₀`, and their degrees at most `(2m+S)c₀ + d`. For `c = 2c₀ + 4`, @@ -52,249 +53,36 @@ namespace FourExponentials namespace ExistsIteratedDerivPresentationOfExpFactor -open Polynomial +open Polynomial PresentationSize /-! ### Length and size of integer polynomials in two variables -/ -/-- The length of `P ∈ ℤ[X][Y]`: the sum of the absolute values of all its integer coefficients. -/ -noncomputable def existsIteratedDerivPresentationOfExpFactorLen (P : ℤ[X][X]) : ℕ := - ∑ r ∈ P.support, ∑ h ∈ (P.coeff r).support, ((P.coeff r).coeff h).natAbs - -lemma exists_iteratedDeriv_presentation_of_exp_factor_len_mul (P Q : ℤ[X][X]) : - existsIteratedDerivPresentationOfExpFactorLen (P * Q) ≤ - existsIteratedDerivPresentationOfExpFactorLen P * - existsIteratedDerivPresentationOfExpFactorLen Q := - Transcendence.length_mul_le P Q - -lemma exists_iteratedDeriv_presentation_of_exp_factor_len_sum {ι : Type*} (s : Finset ι) (f : ι → - ℤ[X][X]) : - existsIteratedDerivPresentationOfExpFactorLen (∑ i ∈ s, f i) ≤ ∑ i ∈ s, - existsIteratedDerivPresentationOfExpFactorLen (f i) := - Transcendence.length_sum_le s f - -lemma exists_iteratedDeriv_presentation_of_exp_factor_len_add (P Q : ℤ[X][X]) : - existsIteratedDerivPresentationOfExpFactorLen (P + Q) ≤ - existsIteratedDerivPresentationOfExpFactorLen P + - existsIteratedDerivPresentationOfExpFactorLen Q := by - have h := exists_iteratedDeriv_presentation_of_exp_factor_len_sum (Finset.univ : Finset (Fin 2)) - ![P, Q] - rw [Fin.sum_univ_two, Fin.sum_univ_two] at h - exact h - -lemma exists_iteratedDeriv_presentation_of_exp_factor_len_CC (z : ℤ) : - existsIteratedDerivPresentationOfExpFactorLen (C (C z)) = z.natAbs := by - rcases eq_or_ne z 0 with rfl | hz - · rw [Polynomial.C_0, Polynomial.C_0, existsIteratedDerivPresentationOfExpFactorLen, - Polynomial.support_zero, Finset.sum_empty, - Int.natAbs_zero] - · rw [existsIteratedDerivPresentationOfExpFactorLen, - Polynomial.support_C (Polynomial.C_ne_zero.2 hz), Finset.sum_singleton, - Polynomial.coeff_C_zero, Polynomial.support_C hz, Finset.sum_singleton, - Polynomial.coeff_C_zero] - -/-- `P` has length at most `b`, and degrees at most `d` in `X` and in `Y`. -/ -def existsIteratedDerivPresentationOfExpFactorSz (P : ℤ[X][X]) (b d : ℕ) : Prop := - existsIteratedDerivPresentationOfExpFactorLen P ≤ b ∧ (∀ r, - (P.coeff r).natDegree ≤ d) ∧ P.natDegree ≤ d - -lemma exists_iteratedDeriv_presentation_of_exp_factor_sz_mono {P : ℤ[X][X]} {b b' d d' : ℕ} (h : - existsIteratedDerivPresentationOfExpFactorSz P b d) (hb : b ≤ b') (hd : d ≤ d') : - existsIteratedDerivPresentationOfExpFactorSz P b' d' := - ⟨h.1.trans hb, fun r => (h.2.1 r).trans hd, h.2.2.trans hd⟩ - -lemma exists_iteratedDeriv_presentation_of_exp_factor_sz_mul {P Q : ℤ[X][X]} {b₁ b₂ d₁ d₂ : ℕ} (hP : - existsIteratedDerivPresentationOfExpFactorSz P b₁ d₁) (hQ : - existsIteratedDerivPresentationOfExpFactorSz Q b₂ d₂) : - existsIteratedDerivPresentationOfExpFactorSz (P * Q) (b₁ * b₂) (d₁ + d₂) := by - refine ⟨(exists_iteratedDeriv_presentation_of_exp_factor_len_mul P Q).trans (Nat.mul_le_mul hP.1 - hQ.1), fun r => ?_, - Polynomial.natDegree_mul_le.trans (Nat.add_le_add hP.2.2 hQ.2.2)⟩ - rw [Polynomial.coeff_mul] - exact Polynomial.natDegree_sum_le_of_forall_le _ _ fun x _ => - Polynomial.natDegree_mul_le.trans (Nat.add_le_add (hP.2.1 x.1) (hQ.2.1 x.2)) - -lemma exists_iteratedDeriv_presentation_of_exp_factor_sz_add {P Q : ℤ[X][X]} {b₁ b₂ d : ℕ} (hP : - existsIteratedDerivPresentationOfExpFactorSz P b₁ d) (hQ : - existsIteratedDerivPresentationOfExpFactorSz Q b₂ d) : - existsIteratedDerivPresentationOfExpFactorSz (P + Q) (b₁ + b₂) d := by - refine ⟨(exists_iteratedDeriv_presentation_of_exp_factor_len_add P Q).trans (Nat.add_le_add hP.1 - hQ.1), fun r => ?_, - (Polynomial.natDegree_add_le P Q).trans (max_le hP.2.2 hQ.2.2)⟩ - rw [Polynomial.coeff_add] - exact (Polynomial.natDegree_add_le _ _).trans (max_le (hP.2.1 r) (hQ.2.1 r)) - -lemma exists_iteratedDeriv_presentation_of_exp_factor_sz_sum {ι : Type*} (s : Finset ι) (f : ι → - ℤ[X][X]) {b d : ℕ} - (h : ∀ i ∈ s, existsIteratedDerivPresentationOfExpFactorSz (f i) b d) : - existsIteratedDerivPresentationOfExpFactorSz (∑ i ∈ s, f i) (s.card * b) d := by - refine ⟨(exists_iteratedDeriv_presentation_of_exp_factor_len_sum s f).trans ?_, fun r => ?_, - Polynomial.natDegree_sum_le_of_forall_le _ _ fun i hi => (h i hi).2.2⟩ - · rw [← smul_eq_mul, ← Finset.sum_const] - exact Finset.sum_le_sum fun i hi => (h i hi).1 - · rw [Polynomial.finsetSum_coeff] - exact Polynomial.natDegree_sum_le_of_forall_le _ _ fun i hi => (h i hi).2.1 r - -lemma exists_iteratedDeriv_presentation_of_exp_factor_sz_CC (z : ℤ) : - existsIteratedDerivPresentationOfExpFactorSz (C (C z)) z.natAbs 0 := by - refine ⟨(exists_iteratedDeriv_presentation_of_exp_factor_len_CC z).le, fun r => ?_, - (Polynomial.natDegree_C _).le⟩ - rw [Polynomial.coeff_C] - split_ifs - · exact (Polynomial.natDegree_C z).le - · exact Polynomial.natDegree_zero.le - -lemma exists_iteratedDeriv_presentation_of_exp_factor_sz_CN (n : ℕ) : - existsIteratedDerivPresentationOfExpFactorSz (C (C (n : ℤ))) n 0 := - exists_iteratedDeriv_presentation_of_exp_factor_sz_CC (n : ℤ) - -lemma exists_iteratedDeriv_presentation_of_exp_factor_sz_one : - existsIteratedDerivPresentationOfExpFactorSz 1 1 0 := by - have h := exists_iteratedDeriv_presentation_of_exp_factor_sz_CC 1 - rw [Polynomial.C_1, Polynomial.C_1] at h - exact h - -lemma exists_iteratedDeriv_presentation_of_exp_factor_sz_pow {P : ℤ[X][X]} {b d : ℕ} (h : - existsIteratedDerivPresentationOfExpFactorSz P b d) : ∀ n : ℕ, - existsIteratedDerivPresentationOfExpFactorSz (P ^ n) (b ^ n) (n * d) - | 0 => by - rw [pow_zero, pow_zero, Nat.zero_mul] - exact exists_iteratedDeriv_presentation_of_exp_factor_sz_one - | n + 1 => by - rw [pow_succ, pow_succ, Nat.succ_mul] - exact exists_iteratedDeriv_presentation_of_exp_factor_sz_mul - (exists_iteratedDeriv_presentation_of_exp_factor_sz_pow h n) h - -lemma exists_iteratedDeriv_presentation_of_exp_factor_sz_exists (P : ℤ[X][X]) : ∃ c, - existsIteratedDerivPresentationOfExpFactorSz P c c := by - refine ⟨existsIteratedDerivPresentationOfExpFactorLen P + (∑ k ∈ Finset.range (P.natDegree + - 1), (P.coeff k).natDegree) + P.natDegree, - by omega, fun r => ?_, by omega⟩ - by_cases hr : r ≤ P.natDegree - · have : (P.coeff r).natDegree ≤ ∑ k ∈ Finset.range (P.natDegree + 1), (P.coeff k).natDegree := - Finset.single_le_sum (f := fun k => (P.coeff k).natDegree) (fun _ _ => Nat.zero_le _) - (Finset.mem_range.2 (Nat.lt_succ_of_le hr)) - omega - · rw [Polynomial.coeff_eq_zero_of_natDegree_lt (not_le.1 hr), Polynomial.natDegree_zero] - exact Nat.zero_le _ - -lemma exists_iteratedDeriv_presentation_of_exp_factor_sz_exists_fam {ι : Type*} [Finite ι] (F : ι → - ℤ[X][X]) : ∃ c, ∀ i, existsIteratedDerivPresentationOfExpFactorSz (F i) c c := by - have := Fintype.ofFinite ι - choose c hc using fun i => exists_iteratedDeriv_presentation_of_exp_factor_sz_exists (F i) - have hle : ∀ i, c i ≤ ∑ i', c i' := fun i => - Finset.single_le_sum (f := c) (fun _ _ => Nat.zero_le _) (Finset.mem_univ i) - exact ⟨∑ i, c i, fun i => exists_iteratedDeriv_presentation_of_exp_factor_sz_mono (hc i) (hle i) - (hle i)⟩ - -lemma exists_iteratedDeriv_presentation_of_exp_factor_succ_le_two_pow : ∀ m : ℕ, m + 1 ≤ 2 ^ m - | 0 => le_rfl - | m + 1 => by - have := exists_iteratedDeriv_presentation_of_exp_factor_succ_le_two_pow m - rw [pow_succ] - omega - /-! ### Values of integer polynomials -/ -lemma exists_iteratedDeriv_presentation_of_exp_factor_phi_CC (φ : ℤ[X][X] →+* ℂ) (z : ℤ) : φ (C (C - z)) = (z : ℂ) := - eq_intCast (φ.comp ((C : ℤ[X] →+* ℤ[X][X]).comp (C : ℤ →+* ℤ[X]))) z - -/-- If `u φ(D) = φ(U)` and `v φ(D) = φ(V)`, then `(p u + q v) φ(D) = φ(p U + q V)`. -/ -lemma exists_iteratedDeriv_presentation_of_exp_factor_lin_eval (φ : ℤ[X][X] →+* ℂ) {u v : ℂ} {Dp U V - : ℤ[X][X]} (hU : u * φ Dp = φ U) - (hV : v * φ Dp = φ V) (p q : ℕ) : - ((p : ℂ) * u + (q : ℂ) * v) * φ Dp = φ (C (C (p : ℤ)) * U + C (C (q : ℤ)) * V) := by - rw [map_add φ, map_mul φ, map_mul φ, exists_iteratedDeriv_presentation_of_exp_factor_phi_CC φ, - exists_iteratedDeriv_presentation_of_exp_factor_phi_CC φ, ← hU, ← hV, Int.cast_natCast, - Int.cast_natCast] - ring - lemma exists_iteratedDeriv_presentation_of_exp_factor_sz_lin {U V : ℤ[X][X]} {c : ℕ} (hU : - existsIteratedDerivPresentationOfExpFactorSz U c c) (hV : - existsIteratedDerivPresentationOfExpFactorSz V c c) (p q : ℕ) : - existsIteratedDerivPresentationOfExpFactorSz (C (C (p : ℤ)) * U + C (C (q : ℤ)) * V) ((p + + Sz U c c) (hV : + Sz V c c) (p q : ℕ) : + Sz (C (C (p : ℤ)) * U + C (C (q : ℤ)) * V) ((p + q) * c) c := - exists_iteratedDeriv_presentation_of_exp_factor_sz_mono - (exists_iteratedDeriv_presentation_of_exp_factor_sz_add - (exists_iteratedDeriv_presentation_of_exp_factor_sz_mul - (exists_iteratedDeriv_presentation_of_exp_factor_sz_CN p) hU) - (exists_iteratedDeriv_presentation_of_exp_factor_sz_mul - (exists_iteratedDeriv_presentation_of_exp_factor_sz_CN q) hV)) (Nat.add_mul p + sz_mono + (sz_add + (sz_mul + (sz_CN p) hU) + (sz_mul + (sz_CN q) hV)) (Nat.add_mul p q c).symm.le (Nat.zero_add c).le /-! ### The presentation of the derivative -/ -/-- Leibniz's rule for the exponential polynomial, linearly in its coefficients. -/ -lemma exists_iteratedDeriv_presentation_of_exp_factor_iteratedDeriv_expPoly (S T m : ℕ) (x₁ x₂ : ℂ) - (f : Fin S → Fin T → Fin T → ℂ) (w : ℂ) : - iteratedDeriv m (fun z : ℂ => ∑ i : Fin S, ∑ j : Fin T, ∑ k : Fin T, - f i j k * z ^ (i : ℕ) * Complex.exp ((((j : ℕ) : ℂ) * x₁ + ((k : ℕ) : ℂ) * x₂) * z)) w = - ∑ i : Fin S, ∑ j : Fin T, ∑ k : Fin T, f i j k * - ∑ l ∈ Finset.range (m + 1), (m.choose l : ℂ) * - (((i : ℕ).descFactorial l : ℂ) * w ^ ((i : ℕ) - l)) * - ((((j : ℕ) : ℂ) * x₁ + ((k : ℕ) : ℂ) * x₂) ^ (m - l) * - Complex.exp ((((j : ℕ) : ℂ) * x₁ + ((k : ℕ) : ℂ) * x₂) * w)) := by - have key : ∀ (i : Fin S) (j k : Fin T), iteratedDeriv m (fun z : ℂ => - f i j k * z ^ (i : ℕ) * Complex.exp ((((j : ℕ) : ℂ) * x₁ + ((k : ℕ) : ℂ) * x₂) * z)) w = - f i j k * ∑ l ∈ Finset.range (m + 1), (m.choose l : ℂ) * - (((i : ℕ).descFactorial l : ℂ) * w ^ ((i : ℕ) - l)) * - ((((j : ℕ) : ℂ) * x₁ + ((k : ℕ) : ℂ) * x₂) ^ (m - l) * - Complex.exp ((((j : ℕ) : ℂ) * x₁ + ((k : ℕ) : ℂ) * x₂) * w)) := by - intro i j k - have h1 : ContDiffAt ℂ m (fun z : ℂ => z ^ (i : ℕ)) w := (contDiff_id.pow _).contDiffAt - have h2 : ContDiffAt ℂ m (fun z : ℂ => - Complex.exp ((((j : ℕ) : ℂ) * x₁ + ((k : ℕ) : ℂ) * x₂) * z)) w := by fun_prop - simp_rw [mul_assoc (f i j k)] - rw [iteratedDeriv_const_mul_field, iteratedDeriv_fun_mul h1 h2] - congr 1 - refine Finset.sum_congr rfl fun l _ => ?_ - rw [iteratedDeriv_pow, iteratedDeriv_cexp_const_mul] - rw [iteratedDeriv_fun_sum (fun i _ => by fun_prop)] - refine Finset.sum_congr rfl fun i _ => ?_ - rw [iteratedDeriv_fun_sum (fun j _ => by fun_prop)] - refine Finset.sum_congr rfl fun j _ => ?_ - rw [iteratedDeriv_fun_sum (fun k _ => by fun_prop)] - exact Finset.sum_congr rfl fun k _ => key i j k - -/-- The integer polynomial `∑_{l ≤ m} C(m,l) i(i-1)⋯(i-l+1) D^l B^(m-l) Z^(i-l) D^(S-i+l) e`. -/ -noncomputable def existsIteratedDerivPresentationOfExpFactorPres (Dp Bp Zp ep : ℤ[X][X]) (S m - i : ℕ) : ℤ[X][X] := - ∑ l ∈ Finset.range (m + 1), C (C ((m.choose l * i.descFactorial l : ℕ) : ℤ)) * - (Dp ^ l * Bp ^ (m - l) * Zp ^ (i - l) * Dp ^ (S - i + l)) * ep - -lemma exists_iteratedDeriv_presentation_of_exp_factor_pres_eval (φ : ℤ[X][X] →+* ℂ) {Dp Bp Zp ep : - ℤ[X][X]} {β ζ Λ' e : ℂ} - (hB : β * φ Dp = φ Bp) (hZ : ζ * φ Dp = φ Zp) (he : φ ep = Λ' * e) {S m i : ℕ} (hi : i < S) : - φ (existsIteratedDerivPresentationOfExpFactorPres Dp Bp Zp ep S m i) = φ Dp ^ (m + S) * Λ' - * - ∑ l ∈ Finset.range (m + 1), (m.choose l : ℂ) * ((i.descFactorial l : ℂ) * ζ ^ (i - l)) * - (β ^ (m - l) * e) := by - rw [existsIteratedDerivPresentationOfExpFactorPres, map_sum φ, Finset.mul_sum] - refine Finset.sum_congr rfl fun l hl => ?_ - have hl' := Finset.mem_range.1 hl - simp only [map_mul φ, map_pow φ] - rw [← hB, ← hZ, he, exists_iteratedDeriv_presentation_of_exp_factor_phi_CC φ, Int.cast_natCast, - Nat.cast_mul] - rcases Nat.lt_or_ge i l with h | h - · rw [Nat.descFactorial_eq_zero_iff_lt.2 h, Nat.cast_zero] - ring - · have hδ : φ Dp ^ (m + S) = - φ Dp ^ l * φ Dp ^ (m - l) * φ Dp ^ (i - l) * φ Dp ^ (S - i + l) := by - rw [← pow_add, ← pow_add, ← pow_add] - congr 1 - omega - rw [hδ, mul_pow, mul_pow] - ring - lemma exists_iteratedDeriv_presentation_of_exp_factor_sz_pres {Dp Bp Zp ep : ℤ[X][X]} {K c E dE S m - i : ℕ} (hD : existsIteratedDerivPresentationOfExpFactorSz Dp K c) (hB : - existsIteratedDerivPresentationOfExpFactorSz Bp K c) - (hZ : existsIteratedDerivPresentationOfExpFactorSz Zp K c) (he : - existsIteratedDerivPresentationOfExpFactorSz ep E dE) (hi : i < S) (hK : 2 * (i + 1) ≤ + i : ℕ} (hD : Sz Dp K c) (hB : + Sz Bp K c) + (hZ : Sz Zp K c) (he : + Sz ep E dE) (hi : i < S) (hK : 2 * (i + 1) ≤ K) : - existsIteratedDerivPresentationOfExpFactorSz - (existsIteratedDerivPresentationOfExpFactorPres Dp Bp Zp ep S m i) (K ^ (4 * m + S) * + Sz + (pres Dp Bp Zp ep S m i) (K ^ (4 * m + S) * E) ((2 * m + S) * c + dE) := by have hK0 : 0 < K := by omega have hcoef : ∀ l, l ≤ m → m.choose l * i.descFactorial l ≤ K ^ m := fun l hl => @@ -304,23 +92,23 @@ lemma exists_iteratedDeriv_presentation_of_exp_factor_sz_pres {Dp Bp Zp ep : ℤ (Nat.pow_le_pow_right (Nat.succ_pos i) hl))) _ = (2 * (i + 1)) ^ m := (Nat.mul_pow 2 (i + 1) m).symm _ ≤ K ^ m := Nat.pow_le_pow_left hK m - have h : existsIteratedDerivPresentationOfExpFactorSz - (existsIteratedDerivPresentationOfExpFactorPres Dp Bp Zp ep S m i) ((Finset.range (m + + have h : Sz + (pres Dp Bp Zp ep S m i) ((Finset.range (m + 1)).card * (K ^ (3 * m + S) * E)) ((2 * m + S) * c + dE) := - exists_iteratedDeriv_presentation_of_exp_factor_sz_sum (Finset.range (m + 1)) _ fun l hl => by + sz_sum (Finset.range (m + 1)) _ fun l hl => by have hl' := Finset.mem_range.1 hl - refine exists_iteratedDeriv_presentation_of_exp_factor_sz_mono - (exists_iteratedDeriv_presentation_of_exp_factor_sz_mul - (exists_iteratedDeriv_presentation_of_exp_factor_sz_mul - (exists_iteratedDeriv_presentation_of_exp_factor_sz_CN _) - (exists_iteratedDeriv_presentation_of_exp_factor_sz_mul - (exists_iteratedDeriv_presentation_of_exp_factor_sz_mul - (exists_iteratedDeriv_presentation_of_exp_factor_sz_mul - (exists_iteratedDeriv_presentation_of_exp_factor_sz_pow hD l) - (exists_iteratedDeriv_presentation_of_exp_factor_sz_pow hB (m - - l))) (exists_iteratedDeriv_presentation_of_exp_factor_sz_pow hZ (i - - l))) (exists_iteratedDeriv_presentation_of_exp_factor_sz_pow hD (S - i + + refine sz_mono + (sz_mul + (sz_mul + (sz_CN _) + (sz_mul + (sz_mul + (sz_mul + (sz_pow hD l) + (sz_pow hB (m - + l))) (sz_pow hZ (i - + l))) (sz_pow hD (S - i + l)))) he) ?_ ?_ · refine Nat.mul_le_mul_right E ?_ rw [← pow_add, ← pow_add, ← pow_add] @@ -330,10 +118,10 @@ lemma exists_iteratedDeriv_presentation_of_exp_factor_sz_pres {Dp Bp Zp ep : ℤ _ = K ^ (3 * m + S) := by rw [← pow_add, show m + (2 * m + S) = 3 * m + S by omega] · rw [Nat.zero_add, ← Nat.add_mul, ← Nat.add_mul, ← Nat.add_mul] exact Nat.add_le_add_right (Nat.mul_le_mul_right c (by omega)) dE - refine exists_iteratedDeriv_presentation_of_exp_factor_sz_mono h ?_ le_rfl + refine sz_mono h ?_ le_rfl rw [Finset.card_range] calc (m + 1) * (K ^ (3 * m + S) * E) ≤ K ^ m * (K ^ (3 * m + S) * E) := - Nat.mul_le_mul_right _ ((exists_iteratedDeriv_presentation_of_exp_factor_succ_le_two_pow + Nat.mul_le_mul_right _ ((succ_le_two_pow m).trans (Nat.pow_le_pow_left (by omega) m)) _ = K ^ (4 * m + S) * E := by rw [← Nat.mul_assoc, ← pow_add, show m + (3 * m + S) = 4 * m + S by omega] @@ -345,7 +133,7 @@ factor. -/ noncomputable def existsIteratedDerivPresentationOfExpFactorPpol (D : ℤ[X][X]) (E G : Fin 2 → ℤ[X][X]) (ep : ℤ[X][X]) (S a b m i j k : ℕ) : ℤ[X][X] := - existsIteratedDerivPresentationOfExpFactorPres D (C (C (j : ℤ)) * E 0 + C (C (k : ℤ)) * + pres D (C (C (j : ℤ)) * E 0 + C (C (k : ℤ)) * E 1) (C (C (a : ℤ)) * G 0 + C (C (b : ℤ)) * G 1) ep S m i @@ -354,13 +142,13 @@ theorem exists_iteratedDeriv_presentation_of_exp_factor_main (x₁ x₂ y₁ y (D : ℤ[X][X]) (E G : Fin 2 → ℤ[X][X]) (hE : ∀ i, ![x₁, x₂] i * φ D = φ (E i)) (hG : ∀ j, ![y₁, y₂] j * φ D = φ (G j)) : ∃ c : ℕ, ∀ (S T a b m : ℕ) (Λ₁ : ℂ) (L d : ℕ) (U : Fin T → Fin T → ℤ[X][X]), - (∀ j k, existsIteratedDerivPresentationOfExpFactorLen (U j k) ≤ L) → (∀ j k r, + (∀ j k, len (U j k) ≤ L) → (∀ j k r, ((U j k).coeff r).natDegree ≤ d) → (∀ j k, (U j k).natDegree ≤ d) → (∀ j k : Fin T, φ (U j k) = Λ₁ * Complex.exp ((((j : ℕ) : ℂ) * x₁ + ((k : ℕ) : ℂ) * x₂) * ((a : ℂ) * y₁ + (b : ℂ) * y₂))) → ∃ P : Fin S → Fin T → Fin T → ℤ[X][X], - (∀ i j k, existsIteratedDerivPresentationOfExpFactorLen (P i j k) ≤ + (∀ i j k, len (P i j k) ≤ c ^ (c * (1 + m + S)) * (1 + m + S + T + a + b) ^ (c * (1 + m + S)) * L) ∧ (∀ i j k r, ((P i j k).coeff r).natDegree ≤ c * (1 + m + S) + d) ∧ (∀ i j k, (P i j k).natDegree ≤ c * (1 + m + S) + d) ∧ @@ -371,16 +159,16 @@ theorem exists_iteratedDeriv_presentation_of_exp_factor_main (x₁ x₂ y₁ y ((a : ℂ) * y₁ + (b : ℂ) * y₂) = ∑ i : Fin S, ∑ j : Fin T, ∑ k : Fin T, f i j k * φ (P i j k) := by -- a common size `c₀` for the data - obtain ⟨cD, hcD⟩ := exists_iteratedDeriv_presentation_of_exp_factor_sz_exists D - obtain ⟨cE, hcE⟩ := exists_iteratedDeriv_presentation_of_exp_factor_sz_exists_fam E - obtain ⟨cG, hcG⟩ := exists_iteratedDeriv_presentation_of_exp_factor_sz_exists_fam G + obtain ⟨cD, hcD⟩ := sz_exists D + obtain ⟨cE, hcE⟩ := sz_exists_fam E + obtain ⟨cG, hcG⟩ := sz_exists_fam G obtain ⟨c₀, hc₀⟩ : ∃ c₀, c₀ = cD + cE + cG + 1 := ⟨_, rfl⟩ - have hD0 : existsIteratedDerivPresentationOfExpFactorSz D c₀ c₀ := - exists_iteratedDeriv_presentation_of_exp_factor_sz_mono hcD (by omega) (by omega) - have hE0 : ∀ p, existsIteratedDerivPresentationOfExpFactorSz (E p) c₀ c₀ := - fun p => exists_iteratedDeriv_presentation_of_exp_factor_sz_mono (hcE p) (by omega) (by omega) - have hG0 : ∀ q, existsIteratedDerivPresentationOfExpFactorSz (G q) c₀ c₀ := - fun q => exists_iteratedDeriv_presentation_of_exp_factor_sz_mono (hcG q) (by omega) (by omega) + have hD0 : Sz D c₀ c₀ := + sz_mono hcD (by omega) (by omega) + have hE0 : ∀ p, Sz (E p) c₀ c₀ := + fun p => sz_mono (hcE p) (by omega) (by omega) + have hG0 : ∀ q, Sz (G q) c₀ c₀ := + fun q => sz_mono (hcG q) (by omega) (by omega) obtain ⟨c, hc⟩ : ∃ c, c = 2 * c₀ + 4 := ⟨_, rfl⟩ refine ⟨c, fun S T a b m Λ₁ L d U hUl hUx hUy hU => ?_⟩ obtain ⟨Q, hQ⟩ : ∃ Q, Q = 1 + m + S + T + a + b := ⟨_, rfl⟩ @@ -406,15 +194,15 @@ theorem exists_iteratedDeriv_presentation_of_exp_factor_main (x₁ x₂ y₁ y omega -- sizes of the `P_{ijk}` have hsz : ∀ (i : Fin S) (j k : Fin T), - existsIteratedDerivPresentationOfExpFactorSz + Sz (existsIteratedDerivPresentationOfExpFactorPpol D E G (U j k) S a b m i j k) (K ^ (4 * m + S) * L) ((2 * m + S) * c₀ + d) := fun i j k => exists_iteratedDeriv_presentation_of_exp_factor_sz_pres - (exists_iteratedDeriv_presentation_of_exp_factor_sz_mono hD0 hc₀K le_rfl) - (exists_iteratedDeriv_presentation_of_exp_factor_sz_mono + (sz_mono hD0 hc₀K le_rfl) + (sz_mono (exists_iteratedDeriv_presentation_of_exp_factor_sz_lin (hE0 0) (hE0 1) (j : ℕ) (k : ℕ)) (by rw [hK]; exact Nat.mul_le_mul_right c₀ (by omega)) le_rfl) - (exists_iteratedDeriv_presentation_of_exp_factor_sz_mono + (sz_mono (exists_iteratedDeriv_presentation_of_exp_factor_sz_lin (hG0 0) (hG0 1) a b) (by rw [hK]; exact Nat.mul_le_mul_right c₀ (by omega)) le_rfl) ⟨hUl j k, hUx j k, hUy j k⟩ i.2 (by have := i.2; omega) @@ -423,7 +211,7 @@ theorem exists_iteratedDeriv_presentation_of_exp_factor_main (x₁ x₂ y₁ y fun i j k r => ((hsz i j k).2.1 r).trans hdeg, fun i j k => (hsz i j k).2.2.trans hdeg, fun f => ?_⟩ · -- the length of `P_{ijk}` - calc existsIteratedDerivPresentationOfExpFactorLen + calc len (existsIteratedDerivPresentationOfExpFactorPpol D E G (U j k) S a b m i j k) ≤ K ^ (4 * m + S) * L := (hsz i j k).1 _ = (2 * c₀) ^ (4 * m + S) * Q ^ (4 * m + S) * L := by rw [hK]; ring @@ -432,7 +220,7 @@ theorem exists_iteratedDeriv_presentation_of_exp_factor_main (x₁ x₂ y₁ y ((Nat.pow_le_pow_left (by omega) _).trans (Nat.pow_le_pow_right (by omega) hmS)) (Nat.pow_le_pow_right (by omega) hmS)) · -- the identity, by Leibniz's rule - rw [exists_iteratedDeriv_presentation_of_exp_factor_iteratedDeriv_expPoly S T m x₁ x₂ f, + rw [iteratedDeriv_expPoly S T m x₁ x₂ f, Finset.mul_sum] refine Finset.sum_congr rfl fun i _ => ?_ rw [Finset.mul_sum] @@ -440,16 +228,16 @@ theorem exists_iteratedDeriv_presentation_of_exp_factor_main (x₁ x₂ y₁ y rw [Finset.mul_sum] refine Finset.sum_congr rfl fun k _ => ?_ dsimp only [existsIteratedDerivPresentationOfExpFactorPpol] - rw [exists_iteratedDeriv_presentation_of_exp_factor_pres_eval φ - (exists_iteratedDeriv_presentation_of_exp_factor_lin_eval φ (u := x₁) (v := + rw [pres_eval φ + (lin_eval φ (u := x₁) (v := x₂) (hE 0) (hE 1) (j : ℕ) (k : ℕ)) - (exists_iteratedDeriv_presentation_of_exp_factor_lin_eval φ (u := y₁) (v := + (lin_eval φ (u := y₁) (v := y₂) (hG 0) (hG 1) a b) (hU j k) i.2] exact mul_left_comm _ _ _ end ExistsIteratedDerivPresentationOfExpFactor -open ExistsIteratedDerivPresentationOfExpFactor in +open ExistsIteratedDerivPresentationOfExpFactor PresentationSize in /-- **Presentations from the exponential factor.** Let $x_1,x_2,y_1,y_2,\omega,\omega_1\in\mathbb{C}$, let $\varphi$ be evaluation at $(\omega,\omega_1)$, and let $D,E_i,G_j\in\mathbb{Z}[X][Y]$ with $x_i\varphi(D)=\varphi(E_i)$ and diff --git a/LeanPool/FourExponentials/ExistsIteratedDerivReducedPresentation.lean b/LeanPool/FourExponentials/ExistsIteratedDerivReducedPresentation.lean index 3f5dfa4c98..92cf43a1cb 100644 --- a/LeanPool/FourExponentials/ExistsIteratedDerivReducedPresentation.lean +++ b/LeanPool/FourExponentials/ExistsIteratedDerivReducedPresentation.lean @@ -16,7 +16,9 @@ public import Mathlib.Tactic.SplitIfs /-! # Reduced presentations -In the setting of Lemma , let moreover $Q\in\mathbb{Z}[X][Y]$ be monic in $Y$ with $\varphi(Q)=0$. +In the setting of `FourExponentials.exists_iteratedDeriv_presentation`, let moreover +$Q\in\mathbb{Z}[X][Y]$ be +monic in $Y$ with $\varphi(Q)=0$. There is $c\in\mathbb{N}$ such that for all $S,T,M,a,b,m\in\mathbb{N}$ there are $\Lambda\neq0$ with $|\Lambda|\le c^{\,c(1+m+S+T(a+b))}$ and $R_{ijh\mu\nu}\in\mathbb{Z}[X][Y]$ ($i ∑ i : Fin S, ∑ j : Fin T, ∑ k : Fin T, + (∑ μ : Fin M, ∑ ν : Fin Q.natDegree, + ((q i j k μ ν : ℤ) : ℂ) * ω ^ (μ : ℕ) * ω₁ ^ (ν : ℕ)) * z ^ (i : ℕ) * + Complex.exp ((((j : ℕ) : ℂ) * x₁ + ((k : ℕ) : ℂ) * x₂) * z)) + ((a : ℂ) * y₁ + (b : ℂ) * y₂) = + Polynomial.eval₂ (Polynomial.eval₂RingHom (Int.castRingHom ℂ) ω) ω₁ + (∑ i : Fin S, ∑ j : Fin T, ∑ k : Fin T, ∑ μ : Fin M, ∑ ν : Fin Q.natDegree, + Polynomial.C (Polynomial.C (q i j k μ ν)) * R i j k μ ν) + +/-- A larger degree budget keeps reduced presentations. -/ +theorem ReducedPresentations.mono {x₁ x₂ y₁ y₂ ω ω₁ : ℂ} {Q : Polynomial (Polynomial ℤ)} + {deg deg' : ℕ → ℕ → ℕ → ℕ → ℕ} (h : ∀ S T a m, deg S T a m ≤ deg' S T a m) + (hp : ReducedPresentations x₁ x₂ y₁ y₂ ω ω₁ Q deg) : + ReducedPresentations x₁ x₂ y₁ y₂ ω ω₁ Q deg' := by + obtain ⟨c, hc⟩ := hp + refine ⟨c, fun S T M a b m => ?_⟩ + obtain ⟨Λ, hΛ, hΛn, R, hRd, hRl, hRx, hR⟩ := hc S T M a b m + exact ⟨Λ, hΛ, hΛn, R, hRd, hRl, fun i j k μ ν r => + (hRx i j k μ ν r).trans (Nat.add_le_add_left (Nat.mul_le_mul_left c (h S T a m)) M), hR⟩ + open Polynomial ExistsIteratedDerivReducedPresentation in -/-- Write `φ(P) = P(ω, ω₁)`. Take `R_{ijkμν} = (X^μ Y^ν P_{ijk}) mod Q`, where `P_{ijk}` and `Λ` -come from the presentation of the derivatives with coefficients `f_{ijk} = ∑ q_{ijkμν} ω^μ ω₁^ν`. -Since `φ(Q) = 0`, `φ(R_{ijkμν}) = ω^μ ω₁^ν φ(P_{ijk})`, which gives the identity after summing -against `q_{ijkμν}`. The remainder has `Y`-degree below `deg Q`. The -product `X^μ Y^ν P_{ijk}` has length at most that of `P_{ijk}`, `X`-degrees at most -`μ + c₄ (1 + m + S)` and `Y`-degree at most `ν + c₄ (1 + m + S)` with `ν < deg Q`, so the -reduction modulo `Q` multiplies the length by at most `C₀^(deg Q + c₄ (1 + m + S))` and adds at -most `C₀ (ν + c₄ (1 + m + S))` to the `X`-degrees. All of this is absorbed into one constant -`c ≥ C₀, c₄`, using `1 + m + S ≤ 1 + m + S + T (a + b)`. -/ -theorem exists_iteratedDeriv_reduced_presentation - (x₁ x₂ y₁ y₂ : ℂ) - (hexp : ∀ i j : Fin 2, IsAlgebraic ℚ (Complex.exp (![x₁, x₂] i * ![y₁, y₂] j))) - (ω ω₁ : ℂ) (Q : Polynomial (Polynomial ℤ)) (hQm : Q.Monic) +/-- **Reduction modulo `Q`.** Presentations of the derivatives whose degrees in `X` and in `Y` are +at most `c deg(S, T, a, m)`, with `1 ≤ deg(S, T, a, m) ≤ 1 + m + S + T (a + b)`, give reduced +presentations modulo a monic `Q` with `φ(Q) = 0`: take `R_{ijkμν} = (X^μ Y^ν P_{ijk}) mod Q`. +Since `φ(Q) = 0`, `φ(R_{ijkμν}) = ω^μ ω₁^ν φ(P_{ijk})`. The product `X^μ Y^ν P_{ijk}` has +`Y`-degree at most `ν + c₄ deg` with `ν < deg Q`, so the reduction multiplies the length by at most +`C₀^(deg Q + c₄ deg)` and adds at most `C₀ (ν + c₄ deg)` to the `X`-degrees, which one constant +`c ≥ C₀, c₄` absorbs. -/ +theorem reduce_presentation (x₁ x₂ y₁ y₂ ω ω₁ : ℂ) (Q : Polynomial (Polynomial ℤ)) (hQm : Q.Monic) (hQroot : Polynomial.eval₂ (Polynomial.eval₂RingHom (Int.castRingHom ℂ) ω) ω₁ Q = 0) - (D : Polynomial (Polynomial ℤ)) (E G : Fin 2 → Polynomial (Polynomial ℤ)) - (H : Fin 2 → Fin 2 → Polynomial (Polynomial ℤ)) - (hD : Polynomial.eval₂ (Polynomial.eval₂RingHom (Int.castRingHom ℂ) ω) ω₁ D ≠ 0) - (hE : ∀ i, ![x₁, x₂] i * Polynomial.eval₂ (Polynomial.eval₂RingHom (Int.castRingHom ℂ) ω) ω₁ D = - Polynomial.eval₂ (Polynomial.eval₂RingHom (Int.castRingHom ℂ) ω) ω₁ (E i)) - (hG : ∀ j, ![y₁, y₂] j * Polynomial.eval₂ (Polynomial.eval₂RingHom (Int.castRingHom ℂ) ω) ω₁ D = - Polynomial.eval₂ (Polynomial.eval₂RingHom (Int.castRingHom ℂ) ω) ω₁ (G j)) - (hH : ∀ i j, Complex.exp (![x₁, x₂] i * ![y₁, y₂] j) * - Polynomial.eval₂ (Polynomial.eval₂RingHom (Int.castRingHom ℂ) ω) ω₁ D = - Polynomial.eval₂ (Polynomial.eval₂RingHom (Int.castRingHom ℂ) ω) ω₁ (H i j)) : - ∃ c : ℕ, ∀ S T M a b m : ℕ, ∃ Λ : ℂ, Λ ≠ 0 ∧ - ‖Λ‖ ≤ (c : ℝ) ^ (c * (1 + m + S + T * (a + b))) ∧ - ∃ R : Fin S → Fin T → Fin T → Fin M → Fin Q.natDegree → Polynomial (Polynomial ℤ), - (∀ i j k μ ν, (R i j k μ ν).natDegree < Q.natDegree) ∧ - (∀ i j k μ ν, ∑ r ∈ (R i j k μ ν).support, ∑ h ∈ ((R i j k μ ν).coeff r).support, - (((R i j k μ ν).coeff r).coeff h).natAbs ≤ - c ^ (c * (1 + m + S + T * (a + b))) * (1 + m + S + T + a + b) ^ (c * (1 + m + S))) ∧ - (∀ i j k μ ν r, ((R i j k μ ν).coeff r).natDegree ≤ M + c * (1 + m + S)) ∧ - ∀ q : Fin S → Fin T → Fin T → Fin M → Fin Q.natDegree → ℤ, - Λ * iteratedDeriv m (fun z : ℂ => ∑ i : Fin S, ∑ j : Fin T, ∑ k : Fin T, - (∑ μ : Fin M, ∑ ν : Fin Q.natDegree, - ((q i j k μ ν : ℤ) : ℂ) * ω ^ (μ : ℕ) * ω₁ ^ (ν : ℕ)) * z ^ (i : ℕ) * - Complex.exp ((((j : ℕ) : ℂ) * x₁ + ((k : ℕ) : ℂ) * x₂) * z)) - ((a : ℂ) * y₁ + (b : ℂ) * y₂) = - Polynomial.eval₂ (Polynomial.eval₂RingHom (Int.castRingHom ℂ) ω) ω₁ - (∑ i : Fin S, ∑ j : Fin T, ∑ k : Fin T, ∑ μ : Fin M, ∑ ν : Fin Q.natDegree, - Polynomial.C (Polynomial.C (q i j k μ ν)) * R i j k μ ν) := by - obtain ⟨c₄, h4⟩ := exists_iteratedDeriv_presentation x₁ x₂ y₁ y₂ hexp ω ω₁ D E G H - hD hE hG hH + (deg : ℕ → ℕ → ℕ → ℕ → ℕ) (hdeg1 : ∀ S T a m, 1 ≤ deg S T a m) + (hdegX : ∀ S T a b m, deg S T a m ≤ 1 + m + S + T * (a + b)) + (hpres : + ∃ c : ℕ, ∀ S T a b m : ℕ, ∃ Λ : ℂ, Λ ≠ 0 ∧ ‖Λ‖ ≤ (c : ℝ) ^ (c * (1 + m + S + T * (a + b))) ∧ + ∃ P : Fin S → Fin T → Fin T → Polynomial (Polynomial ℤ), + (∀ i j k, ∑ r ∈ (P i j k).support, ∑ h ∈ ((P i j k).coeff r).support, + (((P i j k).coeff r).coeff h).natAbs ≤ + c ^ (c * (1 + m + S + T * (a + b))) * (1 + m + S + T + a + b) ^ (c * (1 + m + S))) ∧ + (∀ i j k r, ((P i j k).coeff r).natDegree ≤ c * deg S T a m) ∧ + (∀ i j k, (P i j k).natDegree ≤ c * deg S T a m) ∧ + ∀ f : Fin S → Fin T → Fin T → ℂ, + Λ * iteratedDeriv m (fun z : ℂ => ∑ i : Fin S, ∑ j : Fin T, ∑ k : Fin T, + f i j k * z ^ (i : ℕ) * Complex.exp ((((j : ℕ) : ℂ) * x₁ + ((k : ℕ) : ℂ) * x₂) * z)) + ((a : ℂ) * y₁ + (b : ℂ) * y₂) = + ∑ i : Fin S, ∑ j : Fin T, ∑ k : Fin T, + f i j k * + Polynomial.eval₂ (Polynomial.eval₂RingHom (Int.castRingHom ℂ) ω) ω₁ (P i j k)) : + ReducedPresentations x₁ x₂ y₁ y₂ ω ω₁ Q deg := by + obtain ⟨c₄, h4⟩ := hpres obtain ⟨C₀, h3⟩ := Transcendence.exists_modByMonic_length_le Q -- `Q ≠ 1`, since `φ(Q) = 0` have hQ1 : Q ≠ 1 := by @@ -137,9 +158,10 @@ theorem exists_iteratedDeriv_reduced_presentation obtain ⟨Λ, hΛ, hΛn, P, hPl, hPx, hPy, hPid⟩ := h4 S T a b m set X' := 1 + m + S + T * (a + b) with hX' set Y' := 1 + m + S + T + a + b with hY' + set Z' := deg S T a m with hZ' set Z := 1 + m + S with hZ - have hZ1 : 1 ≤ Z := by omega - have hZX : Z ≤ X' := by omega + have hZ'1 : 1 ≤ Z' := hdeg1 S T a m + have hZX : Z' ≤ X' := hdegX S T a b m have hZY : 1 ≤ Y' := by omega have hc1 : 1 ≤ c := by omega refine ⟨Λ, hΛ, ?_, fun i j k μ ν => (C (X ^ (μ : ℕ)) * X ^ (ν : ℕ) * P i j k) %ₘ Q, @@ -151,41 +173,43 @@ theorem exists_iteratedDeriv_reduced_presentation pow_le_pow_left₀ (Nat.cast_nonneg _) (by exact_mod_cast (by omega : c₄ ≤ c)) _ _ ≤ (c : ℝ) ^ (c * X') := pow_le_pow_right₀ (by exact_mod_cast hc1) (Nat.mul_le_mul_right _ (by omega)) - · -- the length: `C₀^(deg Q + c₄ Z) c₄^(c₄ X') Y'^(c₄ Z) ≤ c^(c X') Y'^(c Z)` - obtain ⟨hsx, hsy⟩ := monomial_mul_degrees (P i j k) μ ν (hPx i j k) (hPy i j k) - have hν : (ν : ℕ) + c₄ * Z ≤ Q.natDegree + c₄ * Z := by have := ν.2; omega + · -- the length: `C₀^(deg Q + c₄ Z') c₄^(c₄ X') Y'^(c₄ Z) ≤ c^(c X') Y'^(c Z)` + obtain ⟨hsx, hsy⟩ := monomial_mul_degrees (P i + j k) μ ν (hPx i j k) (hPy i j k) + have hν : (ν : ℕ) + c₄ * Z' ≤ Q.natDegree + c₄ * Z' := by have := ν.2; omega have hmul := Transcendence.length_mul_le (C (X ^ (μ : ℕ)) * X ^ (ν : ℕ)) (P i j k) rw [length_monomial, one_mul] at hmul refine ((h3 _ _ _ _ (hmul.trans (hPl i j k)) hsx (hsy.trans hν)).1).trans ?_ - have hexp1 : Q.natDegree + c₄ * Z + c₄ * X' ≤ c * X' := by + have hexp1 : Q.natDegree + c₄ * Z' + c₄ * X' ≤ c * X' := by have h1 : Q.natDegree ≤ Q.natDegree * X' := Nat.le_mul_of_pos_right _ (by omega) - have h2 : c₄ * Z ≤ c₄ * X' := Nat.mul_le_mul_left _ hZX + have h2 : c₄ * Z' ≤ c₄ * X' := Nat.mul_le_mul_left _ hZX have h3 := Nat.mul_le_mul_right X' (show Q.natDegree + c₄ + c₄ ≤ c by omega) rw [Nat.add_mul, Nat.add_mul] at h3 omega - calc C₀ ^ (Q.natDegree + c₄ * Z) * (c₄ ^ (c₄ * X') * Y' ^ (c₄ * Z)) - ≤ c ^ (Q.natDegree + c₄ * Z) * (c ^ (c₄ * X') * Y' ^ (c₄ * Z)) := + calc C₀ ^ (Q.natDegree + c₄ * Z') * (c₄ ^ (c₄ * X') * Y' ^ (c₄ * Z)) + ≤ c ^ (Q.natDegree + c₄ * Z') * (c ^ (c₄ * X') * Y' ^ (c₄ * Z)) := Nat.mul_le_mul (Nat.pow_le_pow_left (by omega) _) (Nat.mul_le_mul_right _ (Nat.pow_le_pow_left (by omega) _)) - _ = c ^ (Q.natDegree + c₄ * Z + c₄ * X') * Y' ^ (c₄ * Z) := by ring + _ = c ^ (Q.natDegree + c₄ * Z' + c₄ * X') * Y' ^ (c₄ * Z) := by ring _ ≤ c ^ (c * X') * Y' ^ (c * Z) := Nat.mul_le_mul (Nat.pow_le_pow_right hc1 hexp1) (Nat.pow_le_pow_right hZY (Nat.mul_le_mul_right _ (by omega))) - · -- the `X`-degree: `μ + c₄ Z + C₀ (ν + c₄ Z) ≤ M + c Z` - obtain ⟨hsx, hsy⟩ := monomial_mul_degrees (P i j k) μ ν (hPx i j k) (hPy i j k) + · -- the `X`-degree: `μ + c₄ Z' + C₀ (ν + c₄ Z') ≤ M + c Z'` + obtain ⟨hsx, hsy⟩ := monomial_mul_degrees (P i + j k) μ ν (hPx i j k) (hPy i j k) have hmul := Transcendence.length_mul_le (C (X ^ (μ : ℕ)) * X ^ (ν : ℕ)) (P i j k) rw [length_monomial, one_mul] at hmul refine ((h3 _ _ _ _ (hmul.trans (hPl i j k)) hsx hsy).2 r).trans ?_ have hμ : (μ : ℕ) ≤ M := μ.2.le have hν : (ν : ℕ) ≤ Q.natDegree := ν.2.le - have h1 : C₀ * ((ν : ℕ) + c₄ * Z) ≤ C₀ * Q.natDegree * Z + C₀ * c₄ * Z := by - have e1 : C₀ * (ν : ℕ) ≤ C₀ * Q.natDegree * Z := - (Nat.mul_le_mul_left C₀ hν).trans (Nat.le_mul_of_pos_right _ hZ1) - have e2 : C₀ * ((ν : ℕ) + c₄ * Z) = C₀ * ν + C₀ * c₄ * Z := by ring + have h1 : C₀ * ((ν : ℕ) + c₄ * Z') ≤ C₀ * Q.natDegree * Z' + C₀ * c₄ * Z' := by + have e1 : C₀ * (ν : ℕ) ≤ C₀ * Q.natDegree * Z' := + (Nat.mul_le_mul_left C₀ hν).trans (Nat.le_mul_of_pos_right _ hZ'1) + have e2 : C₀ * ((ν : ℕ) + c₄ * Z') = C₀ * ν + C₀ * c₄ * Z' := by ring omega - have h2 := Nat.mul_le_mul_right Z (show c₄ + C₀ * Q.natDegree + C₀ * c₄ ≤ c by omega) + have h2 := Nat.mul_le_mul_right Z' (show c₄ + C₀ * Q.natDegree + C₀ * c₄ ≤ c by omega) rw [Nat.add_mul, Nat.add_mul] at h2 omega · -- the identity: `φ((X^μ Y^ν P) mod Q) = ω^μ ω₁^ν φ(P)` because `φ(Q) = 0` @@ -208,4 +232,50 @@ theorem exists_iteratedDeriv_reduced_presentation Finset.sum_congr rfl fun ν _ => ?_ ring +/-- Write `φ(P) = P(ω, ω₁)`. Take `R_{ijkμν} = (X^μ Y^ν P_{ijk}) mod Q`, where `P_{ijk}` and `Λ` +come from the presentation of the derivatives with coefficients `f_{ijk} = ∑ q_{ijkμν} ω^μ ω₁^ν`. +Since `φ(Q) = 0`, `φ(R_{ijkμν}) = ω^μ ω₁^ν φ(P_{ijk})`, which gives the identity after summing +against `q_{ijkμν}`. The remainder has `Y`-degree below `deg Q`. The +product `X^μ Y^ν P_{ijk}` has length at most that of `P_{ijk}`, `X`-degrees at most +`μ + c₄ (1 + m + S)` and `Y`-degree at most `ν + c₄ (1 + m + S)` with `ν < deg Q`, so the +reduction modulo `Q` multiplies the length by at most `C₀^(deg Q + c₄ (1 + m + S))` and adds at +most `C₀ (ν + c₄ (1 + m + S))` to the `X`-degrees. All of this is absorbed into one constant +`c ≥ C₀, c₄`, using `1 + m + S ≤ 1 + m + S + T (a + b)`. -/ +theorem exists_iteratedDeriv_reduced_presentation + (x₁ x₂ y₁ y₂ : ℂ) + (hexp : ∀ i j : Fin 2, IsAlgebraic ℚ (Complex.exp (![x₁, x₂] i * ![y₁, y₂] j))) + (ω ω₁ : ℂ) (Q : Polynomial (Polynomial ℤ)) (hQm : Q.Monic) + (hQroot : Polynomial.eval₂ (Polynomial.eval₂RingHom (Int.castRingHom ℂ) ω) ω₁ Q = 0) + (D : Polynomial (Polynomial ℤ)) (E G : Fin 2 → Polynomial (Polynomial ℤ)) + (H : Fin 2 → Fin 2 → Polynomial (Polynomial ℤ)) + (hD : Polynomial.eval₂ (Polynomial.eval₂RingHom (Int.castRingHom ℂ) ω) ω₁ D ≠ 0) + (hE : ∀ i, ![x₁, x₂] i * Polynomial.eval₂ (Polynomial.eval₂RingHom (Int.castRingHom ℂ) ω) ω₁ D = + Polynomial.eval₂ (Polynomial.eval₂RingHom (Int.castRingHom ℂ) ω) ω₁ (E i)) + (hG : ∀ j, ![y₁, y₂] j * Polynomial.eval₂ (Polynomial.eval₂RingHom (Int.castRingHom ℂ) ω) ω₁ D = + Polynomial.eval₂ (Polynomial.eval₂RingHom (Int.castRingHom ℂ) ω) ω₁ (G j)) + (hH : ∀ i j, Complex.exp (![x₁, x₂] i * ![y₁, y₂] j) * + Polynomial.eval₂ (Polynomial.eval₂RingHom (Int.castRingHom ℂ) ω) ω₁ D = + Polynomial.eval₂ (Polynomial.eval₂RingHom (Int.castRingHom ℂ) ω) ω₁ (H i j)) : + ∃ c : ℕ, ∀ S T M a b m : ℕ, ∃ Λ : ℂ, Λ ≠ 0 ∧ + ‖Λ‖ ≤ (c : ℝ) ^ (c * (1 + m + S + T * (a + b))) ∧ + ∃ R : Fin S → Fin T → Fin T → Fin M → Fin Q.natDegree → Polynomial (Polynomial ℤ), + (∀ i j k μ ν, (R i j k μ ν).natDegree < Q.natDegree) ∧ + (∀ i j k μ ν, ∑ r ∈ (R i j k μ ν).support, ∑ h ∈ ((R i j k μ ν).coeff r).support, + (((R i j k μ ν).coeff r).coeff h).natAbs ≤ + c ^ (c * (1 + m + S + T * (a + b))) * (1 + m + S + T + a + b) ^ (c * (1 + m + S))) ∧ + (∀ i j k μ ν r, ((R i j k μ ν).coeff r).natDegree ≤ M + c * (1 + m + S)) ∧ + ∀ q : Fin S → Fin T → Fin T → Fin M → Fin Q.natDegree → ℤ, + Λ * iteratedDeriv m (fun z : ℂ => ∑ i : Fin S, ∑ j : Fin T, ∑ k : Fin T, + (∑ μ : Fin M, ∑ ν : Fin Q.natDegree, + ((q i j k μ ν : ℤ) : ℂ) * ω ^ (μ : ℕ) * ω₁ ^ (ν : ℕ)) * z ^ (i : ℕ) * + Complex.exp ((((j : ℕ) : ℂ) * x₁ + ((k : ℕ) : ℂ) * x₂) * z)) + ((a : ℂ) * y₁ + (b : ℂ) * y₂) = + Polynomial.eval₂ (Polynomial.eval₂RingHom (Int.castRingHom ℂ) ω) ω₁ + (∑ i : Fin S, ∑ j : Fin T, ∑ k : Fin T, ∑ μ : Fin M, ∑ ν : Fin Q.natDegree, + Polynomial.C (Polynomial.C (q i j k μ ν)) * R i j k μ ν) := + reduce_presentation x₁ x₂ y₁ y₂ ω ω₁ Q hQm hQroot (fun S _ _ m => 1 + m + S) + (fun S _ _ m => show 1 ≤ 1 + m + S by omega) + (fun S T a b m => show 1 + m + S ≤ 1 + m + S + T * (a + b) by omega) + (exists_iteratedDeriv_presentation x₁ x₂ y₁ y₂ hexp ω ω₁ D E G H hD hE hG hH) + end FourExponentials diff --git a/LeanPool/FourExponentials/ExistsIteratedDerivReducedPresentationColumn.lean b/LeanPool/FourExponentials/ExistsIteratedDerivReducedPresentationColumn.lean index 9dc5d8069f..ba4aabb6a4 100644 --- a/LeanPool/FourExponentials/ExistsIteratedDerivReducedPresentationColumn.lean +++ b/LeanPool/FourExponentials/ExistsIteratedDerivReducedPresentationColumn.lean @@ -12,6 +12,7 @@ public import Mathlib.Tactic.GCongr public import Mathlib.Tactic.Ring public import Mathlib.Tactic.Set public import Mathlib.Tactic.SplitIfs +public import LeanPool.FourExponentials.ExistsIteratedDerivReducedPresentation /-! # The derivatives with integer unknowns, reduced modulo `Q`, in the column case @@ -40,48 +41,10 @@ proof accepted on Prove2Me as `FourExp.exists_iteratedDeriv_reduced_presentation namespace FourExponentials -namespace ExistsIteratedDerivReducedPresentationColumn - -open Polynomial - -/-- The monomial `X^μ Y^ν` has length one. -/ -lemma exists_iteratedDeriv_reduced_presentation_column_length_monomial (μ ν : ℕ) : - ∑ k ∈ (C (X ^ μ) * X ^ ν : ℤ[X][X]).support, - ∑ i ∈ ((C (X ^ μ) * X ^ ν : ℤ[X][X]).coeff k).support, - (((C (X ^ μ) * X ^ ν : ℤ[X][X]).coeff k).coeff i).natAbs = 1 := by - rw [C_mul_X_pow_eq_monomial, support_monomial _ (pow_ne_zero _ X_ne_zero), Finset.sum_singleton, - coeff_monomial_same, support_X_pow, Finset.sum_singleton, coeff_X_pow_self] - rfl - -/-- Multiplying by `X^μ Y^ν` raises the `X`-degrees of the coefficients by at most `μ` and the -`Y`-degree by at most `ν`. -/ -lemma exists_iteratedDeriv_reduced_presentation_column_monomial_mul_degrees (P : ℤ[X][X]) (μ ν : ℕ) - {e n : ℕ} - (he : ∀ k, (P.coeff k).natDegree ≤ e) (hn : P.natDegree ≤ n) : - (∀ k, ((C (X ^ μ) * X ^ ν * P).coeff k).natDegree ≤ μ + e) ∧ - (C (X ^ μ) * X ^ ν * P).natDegree ≤ ν + n := by - refine ⟨fun k => ?_, ?_⟩ - · rw [mul_assoc, coeff_C_mul, coeff_X_pow_mul'] - refine natDegree_mul_le.trans ?_ - split_ifs - · exact add_le_add (natDegree_X_pow_le μ) (he _) - · rw [natDegree_zero, add_zero] - exact (natDegree_X_pow_le μ).trans (Nat.le_add_right μ e) - · calc (C (X ^ μ) * X ^ ν * P).natDegree - ≤ (C (X ^ μ) * X ^ ν : ℤ[X][X]).natDegree + P.natDegree := natDegree_mul_le - _ ≤ ((C (X ^ μ) : ℤ[X][X]).natDegree + (X ^ ν : ℤ[X][X]).natDegree) + P.natDegree := - Nat.add_le_add_right natDegree_mul_le _ - _ ≤ (0 + ν) + n := by - gcongr - · exact (natDegree_C _).le - · exact natDegree_X_pow_le ν - _ = ν + n := by ring - -end ExistsIteratedDerivReducedPresentationColumn - -open Polynomial ExistsIteratedDerivReducedPresentationColumn in -/-- **Reduced presentations, one algebraic column.** In the setting of Lemma , let moreover -$Q\in\mathbb{Z}[X][Y]$ be monic in $Y$ with $\varphi(Q)=0$. Then the conclusion of Lemma holds with +/-- **Reduced presentations, one algebraic column.** In the setting of +`FourExponentials.exists_iteratedDeriv_presentation_column`, let moreover +$Q\in\mathbb{Z}[X][Y]$ be monic in $Y$ with $\varphi(Q)=0$. Then the conclusion of +`FourExponentials.exists_iteratedDeriv_reduced_presentation` holds with the $X$-degree bound $M+c(1+m+S+Ta)$ in place of $M+c(1+m+S)$. -/ theorem exists_iteratedDeriv_reduced_presentation_column (x₁ x₂ y₁ y₂ : ℂ) @@ -114,94 +77,11 @@ theorem exists_iteratedDeriv_reduced_presentation_column ((a : ℂ) * y₁ + (b : ℂ) * y₂) = Polynomial.eval₂ (Polynomial.eval₂RingHom (Int.castRingHom ℂ) ω) ω₁ (∑ i : Fin S, ∑ j : Fin T, ∑ k : Fin T, ∑ μ : Fin M, ∑ ν : Fin Q.natDegree, - Polynomial.C (Polynomial.C (q i j k μ ν)) * R i j k μ ν) := by - obtain ⟨c₄, h4⟩ := exists_iteratedDeriv_presentation_column x₁ x₂ y₁ y₂ hexp₂ ω ω₁ - D E G H hD hE hG hH - obtain ⟨C₀, h3⟩ := Transcendence.exists_modByMonic_length_le Q - -- `Q ≠ 1`, since `φ(Q) = 0` - have hQ1 : Q ≠ 1 := by - rintro rfl - rw [eval₂_one] at hQroot - exact one_ne_zero hQroot - refine ⟨C₀ + Q.natDegree + 2 * c₄ + C₀ * Q.natDegree + C₀ * c₄ + 1, - fun S T M a b m => ?_⟩ - set c := C₀ + Q.natDegree + 2 * c₄ + C₀ * Q.natDegree + C₀ * c₄ + 1 with hc - obtain ⟨Λ, hΛ, hΛn, P, hPl, hPx, hPy, hPid⟩ := h4 S T a b m - have hTa : T * a ≤ T * (a + b) := Nat.mul_le_mul_left T (Nat.le_add_right a b) - set X' := 1 + m + S + T * (a + b) with hX' - set Y' := 1 + m + S + T + a + b with hY' - set Z' := 1 + m + S + T * a with hZ' - set Z := 1 + m + S with hZ - have hZ'1 : 1 ≤ Z' := by omega - have hZX : Z' ≤ X' := by omega - have hZY : 1 ≤ Y' := by omega - have hc1 : 1 ≤ c := by omega - refine ⟨Λ, hΛ, ?_, fun i j k μ ν => (C (X ^ (μ : ℕ)) * X ^ (ν : ℕ) * P i j k) %ₘ Q, - fun i j k μ ν => natDegree_modByMonic_lt _ hQm hQ1, fun i j k μ ν => ?_, - fun i j k μ ν r => ?_, fun q => ?_⟩ - · -- the factor `Λ`: `c₄^(c₄ X') ≤ c^(c X')` - refine hΛn.trans ?_ - calc (c₄ : ℝ) ^ (c₄ * X') ≤ (c : ℝ) ^ (c₄ * X') := - pow_le_pow_left₀ (Nat.cast_nonneg _) (by exact_mod_cast (by omega : c₄ ≤ c)) _ - _ ≤ (c : ℝ) ^ (c * X') := - pow_le_pow_right₀ (by exact_mod_cast hc1) (Nat.mul_le_mul_right _ (by omega)) - · -- the length: `C₀^(deg Q + c₄ Z') c₄^(c₄ X') Y'^(c₄ Z) ≤ c^(c X') Y'^(c Z)` - obtain ⟨hsx, hsy⟩ := exists_iteratedDeriv_reduced_presentation_column_monomial_mul_degrees (P i - j k) μ ν (hPx i j k) (hPy i j k) - have hν : (ν : ℕ) + c₄ * Z' ≤ Q.natDegree + c₄ * Z' := by have := ν.2; omega - have hmul := Transcendence.length_mul_le - (C (X ^ (μ : ℕ)) * X ^ (ν : ℕ)) (P i j k) - rw [exists_iteratedDeriv_reduced_presentation_column_length_monomial, one_mul] at hmul - refine ((h3 _ _ _ _ (hmul.trans (hPl i j k)) hsx (hsy.trans hν)).1).trans ?_ - have hexp1 : Q.natDegree + c₄ * Z' + c₄ * X' ≤ c * X' := by - have h1 : Q.natDegree ≤ Q.natDegree * X' := Nat.le_mul_of_pos_right _ (by omega) - have h2 : c₄ * Z' ≤ c₄ * X' := Nat.mul_le_mul_left _ hZX - have h3 := Nat.mul_le_mul_right X' (show Q.natDegree + c₄ + c₄ ≤ c by omega) - rw [Nat.add_mul, Nat.add_mul] at h3 - omega - calc C₀ ^ (Q.natDegree + c₄ * Z') * (c₄ ^ (c₄ * X') * Y' ^ (c₄ * Z)) - ≤ c ^ (Q.natDegree + c₄ * Z') * (c ^ (c₄ * X') * Y' ^ (c₄ * Z)) := - Nat.mul_le_mul (Nat.pow_le_pow_left (by omega) _) - (Nat.mul_le_mul_right _ (Nat.pow_le_pow_left (by omega) _)) - _ = c ^ (Q.natDegree + c₄ * Z' + c₄ * X') * Y' ^ (c₄ * Z) := by ring - _ ≤ c ^ (c * X') * Y' ^ (c * Z) := - Nat.mul_le_mul (Nat.pow_le_pow_right hc1 hexp1) - (Nat.pow_le_pow_right hZY (Nat.mul_le_mul_right _ (by omega))) - · -- the `X`-degree: `μ + c₄ Z' + C₀ (ν + c₄ Z') ≤ M + c Z'` - obtain ⟨hsx, hsy⟩ := exists_iteratedDeriv_reduced_presentation_column_monomial_mul_degrees (P i - j k) μ ν (hPx i j k) (hPy i j k) - have hmul := Transcendence.length_mul_le - (C (X ^ (μ : ℕ)) * X ^ (ν : ℕ)) (P i j k) - rw [exists_iteratedDeriv_reduced_presentation_column_length_monomial, one_mul] at hmul - refine ((h3 _ _ _ _ (hmul.trans (hPl i j k)) hsx hsy).2 r).trans ?_ - have hμ : (μ : ℕ) ≤ M := μ.2.le - have hν : (ν : ℕ) ≤ Q.natDegree := ν.2.le - have h1 : C₀ * ((ν : ℕ) + c₄ * Z') ≤ C₀ * Q.natDegree * Z' + C₀ * c₄ * Z' := by - have e1 : C₀ * (ν : ℕ) ≤ C₀ * Q.natDegree * Z' := - (Nat.mul_le_mul_left C₀ hν).trans (Nat.le_mul_of_pos_right _ hZ'1) - have e2 : C₀ * ((ν : ℕ) + c₄ * Z') = C₀ * ν + C₀ * c₄ * Z' := by ring - omega - have h2 := Nat.mul_le_mul_right Z' (show c₄ + C₀ * Q.natDegree + C₀ * c₄ ≤ c by omega) - rw [Nat.add_mul, Nat.add_mul] at h2 - omega - · -- the identity: `φ((X^μ Y^ν P) mod Q) = ω^μ ω₁^ν φ(P)` because `φ(Q) = 0` - have key := hPid (fun i j k => ∑ μ : Fin M, ∑ ν : Fin Q.natDegree, - ((q i j k μ ν : ℤ) : ℂ) * ω ^ (μ : ℕ) * ω₁ ^ (ν : ℕ)) - refine key.trans ?_ - have hφ : ∀ (P : ℤ[X][X]) (μ ν : ℕ), - eval₂ (eval₂RingHom (Int.castRingHom ℂ) ω) ω₁ ((C (X ^ μ) * X ^ ν * P) %ₘ Q) = - ω ^ μ * ω₁ ^ ν * eval₂ (eval₂RingHom (Int.castRingHom ℂ) ω) ω₁ P := by - intro P μ ν - have h := congrArg (eval₂ (eval₂RingHom (Int.castRingHom ℂ) ω) ω₁) - (modByMonic_add_div (C (X ^ μ) * X ^ ν * P) Q) - rw [eval₂_add, eval₂_mul, hQroot, zero_mul, add_zero] at h - rw [h] - simp only [eval₂_mul, eval₂_C, eval₂_X_pow, coe_eval₂RingHom] - simp only [eval₂_finsetSum, eval₂_mul, eval₂_C, hφ, coe_eval₂RingHom, Int.coe_castRingHom, - Finset.sum_mul] - refine Finset.sum_congr rfl fun i _ => Finset.sum_congr rfl fun j _ => - Finset.sum_congr rfl fun k _ => Finset.sum_congr rfl fun μ _ => - Finset.sum_congr rfl fun ν _ => ?_ - ring + Polynomial.C (Polynomial.C (q i j k μ ν)) * R i j k μ ν) := + reduce_presentation x₁ x₂ y₁ y₂ ω ω₁ Q hQm hQroot (fun S T a m => 1 + m + S + T * a) + (fun S T a m => show 1 ≤ 1 + m + S + T * a by omega) + (fun S T a b m => show 1 + m + S + T * a ≤ 1 + m + S + T * (a + b) by + have := Nat.mul_le_mul_left T (Nat.le_add_right a b); omega) + (exists_iteratedDeriv_presentation_column x₁ x₂ y₁ y₂ hexp₂ ω ω₁ D E G H hD hE hG hH) end FourExponentials diff --git a/LeanPool/FourExponentials/ExistsMonicIntegralModelPresentation.lean b/LeanPool/FourExponentials/ExistsMonicIntegralModelPresentation.lean index 06714edb96..1c6b507565 100644 --- a/LeanPool/FourExponentials/ExistsMonicIntegralModelPresentation.lean +++ b/LeanPool/FourExponentials/ExistsMonicIntegralModelPresentation.lean @@ -82,14 +82,6 @@ lemma common_denominator {ω ω₁ : ℂ} {ι : Type*} [Finite ι] (f : ι → ← Finset.mul_prod_erase Finset.univ (fun j => evH ω ω₁ (D j)) (Finset.mem_univ i), ← mul_assoc, hE i] -/-- A rational polynomial becomes integral after multiplying by a non-zero integer. -/ -lemma exists_monic_integral_model_presentation_exists_int_scaled (p : ℚ[X]) : - ∃ b : ℤ, b ≠ 0 ∧ ∃ q : ℤ[X], q.map (Int.castRingHom ℚ) = C (b : ℚ) * p := by - obtain ⟨b, hb, h⟩ := IsLocalization.integerNormalization_spec (nonZeroDivisors ℤ) p - refine ⟨b, nonZeroDivisors.ne_zero hb, IsLocalization.integerNormalization (nonZeroDivisors ℤ) p, - AddMonoidAlgebra.ext (Finsupp.ext fun i => ?_)⟩ - simpa [coeff_map, coeff_C_mul, algebraMap_int_eq] using congrArg (fun q => q.coeff i) h - lemma evH_C (ω ω₁ : ℂ) (q : ℤ[X]) : evH ω ω₁ (C q) = aeval ω (q.map (Int.castRingHom ℚ)) := by simp only [evH, Polynomial.coe_eval₂RingHom, eval₂_C, aeval_def, eval₂_map] @@ -100,8 +92,8 @@ lemma presentable_of_mem {ω ω₁ y : ℂ} (hy : y ∈ IntermediateField.adjoin Presentable ω ω₁ y := by rw [IntermediateField.mem_adjoin_simple_iff] at hy obtain ⟨r, s, rfl⟩ := hy - obtain ⟨n₁, hn₁, q₁, e₁⟩ := exists_monic_integral_model_presentation_exists_int_scaled r - obtain ⟨n₂, hn₂, q₂, e₂⟩ := exists_monic_integral_model_presentation_exists_int_scaled s + obtain ⟨n₁, hn₁, q₁, e₁⟩ := Transcendence.ExistsMonicIntegralModel.exists_int_scaled r + obtain ⟨n₂, hn₂, q₂, e₂⟩ := Transcendence.ExistsMonicIntegralModel.exists_int_scaled s by_cases hs : aeval ω s = 0 · rw [hs, div_zero] exact ⟨1, 0, by simp, by simp⟩ @@ -156,7 +148,8 @@ open Polynomial ExistsMonicIntegralModelPresentation in /-- **One model for finitely many numbers.** Let $\omega\in\mathbb{C}$ be transcendental and let $(z_i)_{i\in I}$ be a finite family of complex numbers algebraic over $\mathbb{Q}(\omega)$. There are $\omega_1\in\mathbb{C}$ and $Q\in\mathbb{Z}[X][Y]$, monic in $Y$ of degree $d\ge1$, with -$Q(\omega,\omega_1)=0$ and minimal there in the sense of Lemma , and $D,E_i\in\mathbb{Z}[X][Y]$ with +$Q(\omega,\omega_1)=0$ and minimal there in the sense of +`Transcendence.exists_monic_integral_model`, and $D,E_i\in\mathbb{Z}[X][Y]$ with $D(\omega,\omega_1)\neq0$ and $$ z_i\,D(\omega,\omega_1)=E_i(\omega,\omega_1)\qquad\text{for every }i. $$ -/ theorem exists_monic_integral_model_presentation (ω : ℂ) (hω : Transcendental ℚ ω) diff --git a/LeanPool/FourExponentials/ExpEOrExpESqTranscendental.lean b/LeanPool/FourExponentials/ExpEOrExpESqTranscendental.lean index c3b7aa6044..fc1e5d0d41 100644 --- a/LeanPool/FourExponentials/ExpEOrExpESqTranscendental.lean +++ b/LeanPool/FourExponentials/ExpEOrExpESqTranscendental.lean @@ -43,22 +43,18 @@ namespace ExpEOrExpESqTranscendental /-! ## Numbers algebraic over `ℚ[x]` -/ -/-- The complex numbers algebraic over `ℚ[x]`, as a `ℚ`-subalgebra of `ℂ`. -/ -noncomputable def expEOrExpESqTranscendentalAlgOver (x : ℂ) : Subalgebra ℚ ℂ := - (Subalgebra.algebraicClosure ↥(Algebra.adjoin ℚ ({x} : Set ℂ)) ℂ).restrictScalars ℚ - theorem exp_e_or_exp_e_sq_transcendental_mem_algOver_of_isAlgebraic {x z : ℂ} (h : IsAlgebraic ℚ z) - : z ∈ expEOrExpESqTranscendentalAlgOver x := + : z ∈ Transcendence.Trdeg.trdegAdjoinLeOneOfIsAlgebraicAdjoinE ℚ x := h.extendScalars (algebraMap ℚ ↥(Algebra.adjoin ℚ ({x} : Set ℂ))).injective theorem exp_e_or_exp_e_sq_transcendental_self_mem_algOver (x : ℂ) : x ∈ - expEOrExpESqTranscendentalAlgOver x := + Transcendence.Trdeg.trdegAdjoinLeOneOfIsAlgebraicAdjoinE ℚ x := isAlgebraic_algebraMap (⟨x, Algebra.subset_adjoin rfl⟩ : ↥(Algebra.adjoin ℚ ({x} : Set ℂ))) /-- If every element of `S` is algebraic over `ℚ[x]`, no two elements of `S` are algebraically independent over `ℚ`: they would sit in `ℚ[S]`, of transcendence degree at most one. -/ theorem exp_e_or_exp_e_sq_transcendental_not_algIndep_of_forall_mem_algOver {x : ℂ} {S : Set ℂ} (hS - : ∀ s ∈ S, s ∈ expEOrExpESqTranscendentalAlgOver x) + : ∀ s ∈ S, s ∈ Transcendence.Trdeg.trdegAdjoinLeOneOfIsAlgebraicAdjoinE ℚ x) {a b : ℂ} (ha : a ∈ S) (hb : b ∈ S) : ¬ AlgebraicIndependent ℚ ![a, b] := fun hab => by have hv : AlgebraicIndependent ℚ (![⟨a, Algebra.subset_adjoin ha⟩, ⟨b, Algebra.subset_adjoin hb⟩] : diff --git a/LeanPool/FourExponentials/ExpPolyZeroCount.lean b/LeanPool/FourExponentials/ExpPolyZeroCount.lean index 700a3e0020..dafc2253b1 100644 --- a/LeanPool/FourExponentials/ExpPolyZeroCount.lean +++ b/LeanPool/FourExponentials/ExpPolyZeroCount.lean @@ -80,7 +80,6 @@ theorem expPoly_zero_count obtain ⟨hn, hΩ⟩ := hdeg have hΩpos : 0 < ⨆ j, ‖ω j‖ := lt_of_le_of_ne hΩ0 (Ne.symm hΩ) have h2 := expPoly_zero_count_scaled q ω hω b hb z₀ ρ hρ S hS hΩpos - exact zero_count_arith (∑ j, q j) (by omega) (ρ * ⨆ j, ‖ω j‖) lam hx hlam _ - (Finset.sum_nonneg (fun z _ => Nat.cast_nonneg _)) h2 + exact zero_count_arith (∑ j, q j) (by omega) (ρ * ⨆ j, ‖ω j‖) lam hx hlam _ h2 end FourExponentials diff --git a/LeanPool/FourExponentials/FourExponentialsTrdegOne.lean b/LeanPool/FourExponentials/FourExponentialsTrdegOne.lean index 62e38c12e4..d5dec21670 100644 --- a/LeanPool/FourExponentials/FourExponentialsTrdegOne.lean +++ b/LeanPool/FourExponentials/FourExponentialsTrdegOne.lean @@ -67,12 +67,12 @@ theorem four_exponentials_trdeg_one : (a : ℂ) * l₁₁ + (b : ℂ) * l₂₁ = 0 ∧ (a : ℂ) * l₁₂ + (b : ℂ) * l₂₂ = 0) ∨ (∃ a b : ℚ, ¬(a = 0 ∧ b = 0) ∧ (a : ℂ) * l₁₁ + (b : ℂ) * l₁₂ = 0 ∧ (a : ℂ) * l₂₁ + (b : ℂ) * l₂₂ = 0) := by - intro l₁₁ l₁₂ l₂₁ l₂₂ e₁₁ e₁₂ e₂₁ e₂₂ n₁₁ n₁₂ n₂₁ n₂₂ hdet htr + intro l₁₁ l₁₂ l₂₁ l₂₂ e₁₁ e₁₂ e₂₁ e₂₂ n₁₁ _ _ _ hdet htr by_contra hcon obtain ⟨hrows, hcols⟩ := not_or.mp hcon obtain ⟨ω, hω, σ₁, σ₂, hm₁, hm₂, ht₁, ht₂, a₁, a₂, ha₁, ha₂, h₂₁, hg₁, hg₂, hC⟩ := small_polynomials_of_counterexample l₁₁ l₁₂ l₂₁ l₂₂ e₁₁ e₁₂ e₂₁ e₂₂ - n₁₁ n₁₂ n₂₁ n₂₂ hdet htr hrows hcols + n₁₁ hdet htr hrows hcols obtain ⟨N₀, P, hP⟩ := hC (max (10 + 1) ((4 + 1) * (a₁ * a₂))) exact hω (transcendence_criterion ω 1 one_pos σ₁ σ₂ hm₁ hm₂ ht₁ ht₂ a₁ a₂ ha₁ ha₂ h₂₁ hg₁ hg₂ N₀ P (fun N hN => (hP N hN).1) (fun N hN => (hP N hN).2.1) diff --git a/LeanPool/FourExponentials/Imports.lean b/LeanPool/FourExponentials/Imports.lean index dde470f3f8..e1f7f99e03 100644 --- a/LeanPool/FourExponentials/Imports.lean +++ b/LeanPool/FourExponentials/Imports.lean @@ -51,6 +51,7 @@ public import LeanPool.FourExponentials.NonvanishingDerivative public import LeanPool.FourExponentials.NormResultantLeMaxNormEval public import LeanPool.FourExponentials.NormToPolynomialAlg public import LeanPool.FourExponentials.NormToPolynomialAlgColumn +public import LeanPool.FourExponentials.PresentationSize public import LeanPool.FourExponentials.RankOneParametrization public import LeanPool.FourExponentials.SiegelAux public import LeanPool.FourExponentials.SiegelEntrywise diff --git a/LeanPool/FourExponentials/LengthSumLe.lean b/LeanPool/FourExponentials/LengthSumLe.lean index 87d632ff37..9adc608665 100644 --- a/LeanPool/FourExponentials/LengthSumLe.lean +++ b/LeanPool/FourExponentials/LengthSumLe.lean @@ -6,6 +6,7 @@ Authors: Carlo Perassi module public import Mathlib.Algebra.Polynomial.Coeff +public import LeanPool.FourExponentials.LengthMulLe /-! # Length of a sum @@ -34,38 +35,7 @@ proof accepted on Prove2Me as `Transcendence.length_sum_le`. namespace FourExponentials.Transcendence -namespace LengthSumLe - -open Polynomial - -variable {R : Type*} [Semiring R] - -/-- The sum of the sizes of the coefficients of `p`. -/ -def lengthSumLeLam (ν : R → ℕ) (p : R[X]) : ℕ := - ∑ n ∈ p.support, ν (p.coeff n) - -theorem length_sum_le_lam_zero (ν : R → ℕ) : lengthSumLeLam ν 0 = 0 := by - rw [lengthSumLeLam, support_zero, Finset.sum_empty] - -/-- The sum may run over any finset containing the support. -/ -theorem length_sum_le_lam_eq_sum (ν : R → ℕ) (hν : ν 0 = - 0) (p : R[X]) {s : Finset ℕ} (hs : p.support ⊆ s) : - lengthSumLeLam ν p = ∑ n ∈ s, ν (p.coeff n) := - Finset.sum_subset hs fun n _ hn => by rw [notMem_support_iff.1 hn, hν] - -theorem length_sum_le_lam_add_le (ν : R → ℕ) (hν : ν 0 = 0) (hadd : ∀ a b, ν (a + b) ≤ ν a + ν b) - (p q : R[X]) : lengthSumLeLam ν (p + q) ≤ lengthSumLeLam ν p + lengthSumLeLam ν q := by - classical - rw [length_sum_le_lam_eq_sum ν hν (p + q) support_add, - length_sum_le_lam_eq_sum ν hν p Finset.subset_union_left, - length_sum_le_lam_eq_sum ν hν q Finset.subset_union_right, ← Finset.sum_add_distrib] - exact Finset.sum_le_sum fun n _ => by - rw [coeff_add] - exact hadd _ _ - -end LengthSumLe - -open LengthSumLe in +open LengthMulLe in /-- **Length of a sum.** For every finite family $(f_i)_{i\in s}$ in $\mathbb{Z}[X][Y]$, $$ L\Bigl(\sum_{i\in s}f_i\Bigr)\le\sum_{i\in s}L(f_i). $$ -/ theorem length_sum_le {ι : Type*} (s : Finset ι) (f : ι → Polynomial (Polynomial ℤ)) : @@ -73,9 +43,9 @@ theorem length_sum_le {ι : Type*} (s : Finset ι) (f : ι → Polynomial (Polyn (((∑ i ∈ s, f i).coeff k).coeff j).natAbs ≤ ∑ i ∈ s, ∑ k ∈ (f i).support, ∑ j ∈ ((f i).coeff k).support, (((f i).coeff k).coeff j).natAbs := by - exact Finset.le_sum_of_subadditive (lengthSumLeLam (lengthSumLeLam Int.natAbs)) - (length_sum_le_lam_zero (lengthSumLeLam Int.natAbs)).le - (length_sum_le_lam_add_le (lengthSumLeLam Int.natAbs) (length_sum_le_lam_zero Int.natAbs) - (length_sum_le_lam_add_le Int.natAbs Int.natAbs_zero Int.natAbs_add_le)) s f + exact Finset.le_sum_of_subadditive (lam (lam Int.natAbs)) + (lam_zero (lam Int.natAbs)).le + (lam_add_le (lam Int.natAbs) (lam_zero Int.natAbs) + (lam_add_le Int.natAbs Int.natAbs_zero Int.natAbs_add_le)) s f end FourExponentials.Transcendence diff --git a/LeanPool/FourExponentials/NormToPolynomialAlg.lean b/LeanPool/FourExponentials/NormToPolynomialAlg.lean index 00506b8d10..0eb72d1858 100644 --- a/LeanPool/FourExponentials/NormToPolynomialAlg.lean +++ b/LeanPool/FourExponentials/NormToPolynomialAlg.lean @@ -15,6 +15,7 @@ public import Mathlib.Tactic.GCongr public import Mathlib.Tactic.Linarith public import Mathlib.Tactic.Positivity public import Mathlib.Tactic.Ring +public import LeanPool.FourExponentials.NormToPolynomialAlgColumn /-! # A small nonzero derivative gives an integer polynomial that is small at `ω` @@ -34,6 +35,10 @@ bounds the three exponents. So `|P(ω)| ≤ e^(k A - N⁴ s / κ')` when `|F_q⁽ᵐ⁾(a y₁ + b y₂)| ≤ e^(-N⁴ s / κ')`, and this is below `e^(-C (k A) (k B)) = e^(-C k² N⁴)` as soon as `s ≥ 2 κ' (|C| k² + k + 1)`. +The proof is `norm_to_polynomial_alg_column`, applied through `ReducedPresentations.mono` to the +presentation of `exists_iteratedDeriv_reduced_presentation`, whose `X`-degrees are at most +`M + c (1 + m + S)`. That case only gives the weaker bound `e ≤ (κ + 31 c) B`, which is enough. + From `Diaz/Mirror/norm_to_polynomial_alg.lean` of [diaz-modulus-lean](https://github.com/carlok/diaz-modulus-lean) at `465147a`, where it mirrors the proof accepted on Prove2Me as `FourExp.norm_to_polynomial_alg`. @@ -43,52 +48,6 @@ proof accepted on Prove2Me as `FourExp.norm_to_polynomial_alg`. namespace FourExponentials -namespace NormToPolynomialAlg - -open Polynomial - -/-- A coefficient of an integer polynomial is at most its length. -/ -lemma natAbs_coeff_le (P : Polynomial ℤ) (i : ℕ) : - (P.coeff i).natAbs ≤ ∑ j ∈ P.support, (P.coeff j).natAbs := by - by_cases hi : i ∈ P.support - · exact Finset.single_le_sum (f := fun j => (P.coeff j).natAbs) (fun _ _ => Nat.zero_le _) hi - · rw [notMem_support_iff.1 hi]; simp - -/-- Multiplying by an integer `a` multiplies the length by `|a|` at most. -/ -lemma length_C_C_mul_le {a : ℤ} {P : Polynomial (Polynomial ℤ)} {x y : ℝ} (ha : |(a : ℝ)| ≤ x) - (hP : ((∑ k ∈ P.support, ∑ i ∈ (P.coeff k).support, ((P.coeff k).coeff i).natAbs : ℕ) : ℝ) - ≤ y) : - ((∑ k ∈ (C (C a) * P).support, ∑ i ∈ ((C (C a) * P).coeff k).support, - (((C (C a) * P).coeff k).coeff i).natAbs : ℕ) : ℝ) ≤ x * y := by - have h := Transcendence.length_mul_le (C (C a)) P - have hC : ∑ k ∈ (C (C a)).support, ∑ i ∈ ((C (C a)).coeff k).support, - (((C (C a)).coeff k).coeff i).natAbs = a.natAbs := by - by_cases ha0 : a = 0 - · simp [ha0] - · rw [support_C (C_ne_zero.2 ha0), Finset.sum_singleton, coeff_C_zero, support_C ha0, - Finset.sum_singleton, coeff_C_zero] - rw [hC] at h - refine (Nat.cast_le.2 h).trans ?_ - rw [Nat.cast_mul, Nat.cast_natAbs, Int.cast_abs] - exact mul_le_mul ha hP (Nat.cast_nonneg _) ((abs_nonneg _).trans ha) - -/-- The length of a sum is at most the number of terms times a bound on their lengths. -/ -lemma norm_to_polynomial_alg_length_sum_le {ι : Type*} (s : Finset ι) (f : ι → - Polynomial (Polynomial ℤ)) (B : ℝ) - (h : ∀ i ∈ s, ((∑ k ∈ (f i).support, ∑ j ∈ ((f i).coeff k).support, - (((f i).coeff k).coeff j).natAbs : ℕ) : ℝ) ≤ B) : - ((∑ k ∈ (∑ i ∈ s, f i).support, ∑ j ∈ ((∑ i ∈ s, f i).coeff k).support, - (((∑ i ∈ s, f i).coeff k).coeff j).natAbs : ℕ) : ℝ) ≤ s.card * B := by - refine (Nat.cast_le.2 (Transcendence.length_sum_le s f)).trans ?_ - rw [Nat.cast_sum] - exact (Finset.sum_le_sum h).trans (by rw [Finset.sum_const, nsmul_eq_mul]) - -/-- For `A ≥ 1`, a nonnegative `x` is at most `e^(x A)`. -/ -lemma le_exp_mul {x A : ℝ} (hx : 0 ≤ x) (hA : 1 ≤ A) : x ≤ Real.exp (x * A) := by - nlinarith [Real.add_one_le_exp (x * A), mul_le_mul_of_nonneg_left hA hx] - -end NormToPolynomialAlg - open Polynomial NormToPolynomialAlg /-- **From a small value to a small polynomial.** Let $x_1,x_2,y_1,y_2\in\mathbb{C}$ have @@ -102,8 +61,7 @@ of constant $k$. -/ theorem norm_to_polynomial_alg (x₁ x₂ y₁ y₂ : ℂ) (hexp : ∀ i j : Fin 2, IsAlgebraic ℚ (Complex.exp (![x₁, x₂] i * ![y₁, - y₂] j))) (ω ω₁ : ℂ) (_hω : Transcendental ℚ ω) (Q : Polynomial (Polynomial ℤ)) (hQm : - Q.Monic) (hQd : 0 < Q.natDegree) + y₂] j))) (ω ω₁ : ℂ) (Q : Polynomial (Polynomial ℤ)) (hQm : Q.Monic) (hQroot : Polynomial.eval₂ (Polynomial.eval₂RingHom (Int.castRingHom ℂ) ω) ω₁ Q = 0) (hQmin : ∀ A : Polynomial (Polynomial ℤ), A.natDegree < Q.natDegree → Polynomial.eval₂ (Polynomial.eval₂RingHom (Int.castRingHom ℂ) ω) ω₁ A = 0 → A = 0) @@ -145,187 +103,12 @@ theorem norm_to_polynomial_alg ‖Polynomial.aeval ω P‖ < Real.exp (-(C * (k * (if (N : ℝ) ≤ 3 then (N : ℝ) - 3 + 9 * Real.sqrt (Real.log 3) else (N : ℝ) ^ 2 * Real.sqrt (Real.log (N : ℝ)))) * (k * (if (N : ℝ) ≤ 3 then (N : ℝ) - 3 + 9 / Real.sqrt (Real.log 3) else (N : ℝ) ^ 2 / - Real.sqrt (Real.log (N : ℝ)))))) := by - -- The presentation of the derivatives, the norm down to `ℚ(ω)`, and the growth bound for - -- the grid `T ≤ 14 N`. - obtain ⟨c, hc⟩ := exists_iteratedDeriv_reduced_presentation x₁ x₂ y₁ y₂ hexp ω ω₁ Q - hQm hQroot D E G H hD hE hG hH - obtain ⟨c₁, hc₁⟩ := exists_int_norm ω ω₁ Q hQm hQroot hQmin - obtain ⟨κ₅, hκ₅, hA5⟩ := exists_pow_mul_pow_le_exp_sq_mul_sqrt_log c 14 - -- One constant `k` for the height, the degree and the value. - have hlw : 0 ≤ Real.log (max 1 ‖ω‖) := Real.log_nonneg (le_max_left _ _) - obtain ⟨β, hβ⟩ : ∃ β : ℝ, β = 4 * κ * Q.natDegree + 6 + κ + κ₅ := ⟨_, rfl⟩ - obtain ⟨k, hk⟩ : ∃ k : ℝ, - k = Q.natDegree * (c₁ + β + (κ + 3 * c) * (1 + Real.log (max 1 ‖ω‖))) + κ₅ + 1 := ⟨_, rfl⟩ - have hβ0 : 0 ≤ β := by rw [hβ]; positivity - have hk0 : 0 < k := by rw [hk]; positivity - refine ⟨k, hk0, fun C => ⟨max 3 ⌈Real.exp ((2 * κ' * (|C| * k ^ 2 + k + 1)) ^ 2)⌉₊, - fun N hN => ?_⟩⟩ - -- The scale `s = √(log N)`, with `s ≥ 2 κ' (|C| k² + k + 1)`. - have hN3 : 3 ≤ N := by omega - have hNr : (3 : ℝ) ≤ N := by exact_mod_cast hN3 - have hN3' : ¬ (N : ℝ) ≤ 3 := by - have : (4 : ℝ) ≤ N := by exact_mod_cast (by omega : 4 ≤ N) - linarith - have hL1 : 1 ≤ Real.log N := by - rw [Real.le_log_iff_exp_le (by positivity)]; have := Real.exp_one_lt_d9; linarith - have hLN : Real.log N ≤ N := by - have := Real.log_le_sub_one_of_pos (by positivity : (0 : ℝ) < N); linarith - have hs1 : 1 ≤ Real.sqrt (Real.log N) := Real.one_le_sqrt.2 hL1 - have hss := Real.mul_self_sqrt (by linarith : (0 : ℝ) ≤ Real.log N) - have hσ : 2 * κ' * (|C| * k ^ 2 + k + 1) ≤ Real.sqrt (Real.log N) := by - have h1 : Real.exp ((2 * κ' * (|C| * k ^ 2 + k + 1)) ^ 2) ≤ N := (Nat.le_ceil _).trans - (by exact_mod_cast (by omega : ⌈Real.exp ((2 * κ' * (|C| * k ^ 2 + k + 1)) ^ 2)⌉₊ ≤ N)) - rw [← Real.sqrt_sq (by positivity : 0 ≤ 2 * κ' * (|C| * k ^ 2 + k + 1))] - exact Real.sqrt_le_sqrt ((Real.le_log_iff_exp_le (by positivity)).2 h1) - generalize hs : Real.sqrt (Real.log (N : ℝ)) = s at hs1 hss hσ ⊢ - have hspos : 0 < s := by linarith - have hNN : (N : ℝ) * 1 ≤ N * N := mul_le_mul_of_nonneg_left (by linarith) (by positivity) - have hsN : s ≤ (N : ℝ) ^ 2 := by linarith [mul_le_mul_of_nonneg_left hs1 hspos.le] - -- The three floors. - have hSr : (⌊(N : ℝ) ^ 2 / s⌋₊ : ℝ) ≤ (N : ℝ) ^ 2 / s := Nat.floor_le (by positivity) - have h1r : (⌊(N : ℝ) / s⌋₊ : ℝ) ≤ (N : ℝ) / s := Nat.floor_le (by positivity) - have h2r : (⌊(N : ℝ) * s⌋₊ : ℝ) ≤ (N : ℝ) * s := Nat.floor_le (by positivity) - generalize ⌊(N : ℝ) ^ 2 / s⌋₊ = S at hSr ⊢ - generalize ⌊(N : ℝ) / s⌋₊ = t₁ at h1r ⊢ - generalize ⌊(N : ℝ) * s⌋₊ = t₂ at h2r ⊢ - -- `A = N² s` and `B = N² / s`: `1 ≤ B ≤ A`, `log N ≤ A ≤ N⁴` and `A B = N⁴`. - have hSN : (S : ℝ) ≤ (N : ℝ) ^ 2 := hSr.trans (div_le_self (by positivity) hs1) - have hB1 : 1 ≤ (N : ℝ) ^ 2 / s := by rw [le_div_iff₀ hspos]; linarith - have hBA : (N : ℝ) ^ 2 / s ≤ (N : ℝ) ^ 2 * s := by - rw [div_le_iff₀ hspos, mul_assoc, hss] - linarith [mul_le_mul_of_nonneg_left hL1 (by positivity : (0 : ℝ) ≤ (N : ℝ) ^ 2)] - have hLA : Real.log N ≤ (N : ℝ) ^ 2 * s := by - linarith [mul_le_mul_of_nonneg_left hs1 (by positivity : (0 : ℝ) ≤ (N : ℝ) ^ 2)] - have hAN : (N : ℝ) ^ 2 * s ≤ (N : ℝ) ^ 4 := by - linarith [mul_le_mul_of_nonneg_left hsN (by positivity : (0 : ℝ) ≤ (N : ℝ) ^ 2)] - have hAB : (N : ℝ) ^ 2 * s * ((N : ℝ) ^ 2 / s) = (N : ℝ) ^ 4 := by - field_simp - generalize hA : (N : ℝ) ^ 2 * s = A at hBA hLA hAN hAB ⊢ - generalize hB : (N : ℝ) ^ 2 / s = B at hSr hB1 hBA hAB ⊢ - have hA1 : 1 ≤ A := hB1.trans hBA - intro M hM q hqq a b m ha hb hm hne hsmall - have hmS : m ≤ S := by omega - -- `Λ F_q⁽ᵐ⁾(a y₁ + b y₂) = φ(Pol)`, with `|Λ|` and the lengths of the `R` at most `e^(κ₅ A)`. - obtain ⟨Λ, hΛ, hΛb, R, hRy, hRl, hRx, hRid⟩ := hc S (2 * N) M a b m - have h5 := hA5 N S (2 * N) a b m hN3 - rw [hs, hA, hB] at h5 - have hL5 := h5 hSr hmS (by omega) - (by have : (a : ℝ) ≤ 14 * t₁ := by exact_mod_cast (by omega : a ≤ 14 * t₁) - push_cast; linarith) - (by have : (b : ℝ) ≤ 14 * t₂ := by exact_mod_cast (by omega : b ≤ 14 * t₂) - push_cast; linarith) - have hΛe : ‖Λ‖ ≤ Real.exp (κ₅ * A) := by - refine hΛb.trans (le_trans ?_ hL5) - exact_mod_cast Nat.le_mul_of_pos_right _ (by positivity) - obtain ⟨Pol, hPol⟩ : ∃ Pol : Polynomial (Polynomial ℤ), Pol = ∑ i : Fin S, ∑ j : Fin (2 * N), - ∑ k' : Fin (2 * N), ∑ μ : Fin M, ∑ ν : Fin Q.natDegree, - Polynomial.C (Polynomial.C (q i j k' μ ν)) * R i j k' μ ν := ⟨_, rfl⟩ - have hval := hRid q - rw [← hPol] at hval - have hPol0 : eval₂ (eval₂RingHom (Int.castRingHom ℂ) ω) ω₁ Pol ≠ 0 := by - rw [← hval]; exact mul_ne_zero hΛ hne - -- `Pol` has `Y`-degree below `d`, `X`-degree at most `e`, and length at most `e^(β A)`. - have hPy : Pol.natDegree < Q.natDegree := by - rw [hPol] - refine lt_of_le_of_lt (natDegree_sum_le_of_forall_le _ _ fun i _ => - natDegree_sum_le_of_forall_le _ _ fun j _ => natDegree_sum_le_of_forall_le _ _ fun k' _ => - natDegree_sum_le_of_forall_le _ _ fun μ _ => natDegree_sum_le_of_forall_le _ _ fun ν _ => - (natDegree_C_mul_le _ _).trans (Nat.le_sub_one_of_lt (hRy i j k' μ ν))) (by omega) - have hPx : ∀ r, (Pol.coeff r).natDegree ≤ M + c * (1 + m + S) := by - intro r - simp only [hPol, finsetSum_coeff, coeff_C_mul] - exact natDegree_sum_le_of_forall_le _ _ fun i _ => - natDegree_sum_le_of_forall_le _ _ fun j _ => natDegree_sum_le_of_forall_le _ _ fun k' _ => - natDegree_sum_le_of_forall_le _ _ fun μ _ => natDegree_sum_le_of_forall_le _ _ fun ν _ => - (natDegree_C_mul_le _ _).trans (hRx i j k' μ ν r) - obtain ⟨lP, hlP⟩ : ∃ lP : ℕ, ∑ k ∈ Pol.support, ∑ i ∈ (Pol.coeff k).support, - ((Pol.coeff k).coeff i).natAbs = lP := ⟨_, rfl⟩ - have hlPe : (lP : ℝ) ≤ Real.exp (β * A) := by - rw [← hlP, hPol] - refine (norm_to_polynomial_alg_length_sum_le _ _ _ fun i _ => - norm_to_polynomial_alg_length_sum_le _ _ _ fun j _ => - norm_to_polynomial_alg_length_sum_le _ _ _ fun k' _ => norm_to_polynomial_alg_length_sum_le _ - _ _ fun μ _ => norm_to_polynomial_alg_length_sum_le _ _ _ fun ν _ => - length_C_C_mul_le (hqq i j k' μ ν) ((Nat.cast_le.2 (hRl i j k' μ ν)).trans hL5)).trans ?_ - simp only [Finset.card_univ, Fintype.card_fin] - push_cast - have hN6 : (N : ℝ) ^ 6 ≤ Real.exp (6 * A) := by - rw [← Real.exp_log (by positivity : (0 : ℝ) < (N : ℝ) ^ 6), Real.log_pow] - exact Real.exp_le_exp.2 (by push_cast; linarith) - have hMN : (M : ℝ) ≤ κ * (N : ℝ) ^ 2 := hM.trans (mul_le_mul_of_nonneg_left hSN hκ.le) - calc _ ≤ (N : ℝ) ^ 2 * (2 * N * (2 * N * (κ * (N : ℝ) ^ 2 * (Q.natDegree * - (Real.exp (κ * A) * Real.exp (κ₅ * A)))))) := by gcongr - _ = 4 * κ * Q.natDegree * (N : ℝ) ^ 6 * (Real.exp (κ * A) * Real.exp (κ₅ * A)) := by ring - _ ≤ Real.exp (4 * κ * Q.natDegree * A) * Real.exp (6 * A) * - (Real.exp (κ * A) * Real.exp (κ₅ * A)) := by - gcongr; exact le_exp_mul (by positivity) hA1 - _ = Real.exp (β * A) := by rw [hβ]; simp only [add_mul, Real.exp_add]; ring - -- The norm `P` of `φ(Pol)`, and the three bounds. - obtain ⟨P, hP0, hPl, hPd, hPv⟩ := hc₁ Pol lP (M + c * (1 + m + S)) hPy hlP.le hPx hPol0 - have he : ((M + c * (1 + m + S) : ℕ) : ℝ) ≤ (κ + 3 * c) * B := by - have hmS' : (m : ℝ) ≤ S := by exact_mod_cast hmS - have hc0 : (0 : ℝ) ≤ c := Nat.cast_nonneg c - push_cast - linarith [mul_le_mul_of_nonneg_left hSr hκ.le, mul_le_mul_of_nonneg_left hB1 hc0, - mul_le_mul_of_nonneg_left (hmS'.trans hSr) hc0, mul_le_mul_of_nonneg_left hSr hc0] - have hX : ((c₁ * lP : ℕ) : ℝ) ≤ Real.exp ((c₁ + β) * A) := by - rw [Nat.cast_mul, add_mul, Real.exp_add] - exact mul_le_mul (le_exp_mul (Nat.cast_nonneg _) hA1) hlPe (Nat.cast_nonneg _) - (Real.exp_pos _).le - have hd0 : (0 : ℝ) ≤ Q.natDegree := Nat.cast_nonneg _ - refine ⟨P, hP0, fun i => ?_, ?_, ?_⟩ - · -- the height - rw [ite_eq_right hN3', ← Int.cast_abs, ← Nat.cast_natAbs] - have h1 : ((P.coeff i).natAbs : ℝ) ≤ ((c₁ * lP : ℕ) : ℝ) ^ Q.natDegree := by - exact_mod_cast (natAbs_coeff_le P i).trans hPl - refine h1.trans ((pow_le_pow_left₀ (Nat.cast_nonneg _) hX _).trans ?_) - rw [← Real.exp_nat_mul] - refine Real.exp_le_exp.2 ?_ - rw [hk] - linarith [mul_nonneg (by positivity : (0 : ℝ) ≤ - Q.natDegree * ((κ + 3 * c) * (1 + Real.log (max 1 ‖ω‖))) + κ₅ + 1) - (by linarith : (0 : ℝ) ≤ A)] - · -- the degree - rw [ite_eq_right hN3'] - have h1 : (P.natDegree : ℝ) ≤ Q.natDegree * (((M + c * (1 + m + S) : ℕ) : ℝ) + c₁) := by - exact_mod_cast hPd - refine h1.trans ?_ - have hc₁B : (c₁ : ℝ) ≤ c₁ * B := le_mul_of_one_le_right (Nat.cast_nonneg _) hB1 - rw [hk] - linarith [mul_le_mul_of_nonneg_left (add_le_add he hc₁B) hd0, mul_nonneg (by positivity : - (0 : ℝ) ≤ Q.natDegree * (β + (κ + 3 * c) * Real.log (max 1 ‖ω‖)) + κ₅ + 1) - (by linarith : (0 : ℝ) ≤ B)] - · -- the value - rw [ite_eq_right hN3', ite_eq_right hN3'] - have hW : max 1 ‖ω‖ ^ (M + c * (1 + m + S)) ≤ - Real.exp ((κ + 3 * c) * Real.log (max 1 ‖ω‖) * A) := by - rw [← Real.exp_log (by positivity : (0 : ℝ) < max 1 ‖ω‖), ← Real.exp_nat_mul, Real.log_exp] - refine Real.exp_le_exp.2 ?_ - linarith [mul_le_mul_of_nonneg_right - (he.trans (mul_le_mul_of_nonneg_left hBA (by positivity))) hlw] - have hXW := pow_le_pow_left₀ (by positivity) (mul_le_mul hX hW (by positivity) - (Real.exp_pos _).le) Q.natDegree - rw [← Real.exp_add, ← Real.exp_nat_mul] at hXW - refine lt_of_le_of_lt (b := Real.exp (k * A - (N : ℝ) ^ 4 * s / κ')) (hPv.trans ?_) - (Real.exp_lt_exp.2 ?_) - · rw [← hval, norm_mul] - refine (mul_le_mul (mul_le_mul hΛe hsmall (norm_nonneg _) (Real.exp_pos _).le) hXW - (by positivity) (by positivity)).trans ?_ - rw [← Real.exp_add, ← Real.exp_add] - refine Real.exp_le_exp.2 ?_ - rw [hk] - linarith [mul_nonneg (by positivity : (0 : ℝ) ≤ Q.natDegree * (κ + 3 * c) + 1) - (by linarith : (0 : ℝ) ≤ A)] - · -- `k A - N⁴ s / κ' < -C (k A) (k B)`, since `A B = N⁴`, `A ≤ N⁴` and `s` is large. - have hN4 : (0 : ℝ) < (N : ℝ) ^ 4 := by positivity - have h1 : 2 * (|C| * k ^ 2 + k + 1) * (N : ℝ) ^ 4 ≤ (N : ℝ) ^ 4 * s / κ' := by - rw [le_div_iff₀ hκ']; linarith [mul_le_mul_of_nonneg_left hσ hN4.le] - have h2 : C * (k * A) * (k * B) ≤ |C| * k ^ 2 * (N : ℝ) ^ 4 := by - rw [show C * (k * A) * (k * B) = C * k ^ 2 * (A * B) by ring, hAB] - exact mul_le_mul_of_nonneg_right - (mul_le_mul_of_nonneg_right (le_abs_self C) (by positivity)) hN4.le - have h3 : k * A ≤ k * (N : ℝ) ^ 4 := mul_le_mul_of_nonneg_left hAN hk0.le - linarith [mul_nonneg (mul_nonneg (abs_nonneg C) (sq_nonneg k)) hN4.le, mul_pos hk0 hN4] + Real.sqrt (Real.log (N : ℝ)))))) := + norm_to_polynomial_alg_column x₁ x₂ y₁ y₂ ω ω₁ Q hQm hQroot hQmin + (ReducedPresentations.mono (deg := fun S _ _ m => 1 + m + S) + (fun S T a m => Nat.le_add_right (1 + m + S) (T * a)) + (exists_iteratedDeriv_reduced_presentation x₁ x₂ y₁ y₂ hexp ω ω₁ Q hQm hQroot D E G H hD hE hG + hH)) + κ κ' hκ hκ' end FourExponentials diff --git a/LeanPool/FourExponentials/NormToPolynomialAlgColumn.lean b/LeanPool/FourExponentials/NormToPolynomialAlgColumn.lean index 75889a62d2..4c66d24a7e 100644 --- a/LeanPool/FourExponentials/NormToPolynomialAlgColumn.lean +++ b/LeanPool/FourExponentials/NormToPolynomialAlgColumn.lean @@ -16,6 +16,7 @@ public import Mathlib.Tactic.GCongr public import Mathlib.Tactic.Linarith public import Mathlib.Tactic.Positivity public import Mathlib.Tactic.Ring +public import LeanPool.FourExponentials.ExistsIteratedDerivReducedPresentation /-! # A small non-zero derivative gives an integer polynomial that is small at `ω`, in the column case @@ -25,14 +26,15 @@ Write `φ(P) = P(ω, ω₁)` for `P ∈ ℤ[X][Y]`, `d = deg Q`, `s = √(log N) `F_q(z) = ∑ (∑_{μ,ν} q_{ijkμν} ω^μ ω₁^ν) z^i e^((j x₁ + k x₂) z)`, with integers `|q_{ijkμν}| ≤ e^(κ A)`, `i < S`, `j, k < 2N`, `μ < M ≤ κ S` and `ν < d`. -The proof is that of `norm_to_polynomial_alg`, with the presentation `hpres` in place of -`exists_iteratedDeriv_reduced_presentation`; the original's hypothesis `d > 0` follows -from `Q` monic with `φ(Q) = 0`. At the point `a y₁ + b y₂` and the order `m < S / 2`, +The derivatives are presented by the hypothesis `hpres`, in the form `ReducedPresentations`; +`norm_to_polynomial_alg` is the case of the smaller degree bound of +`exists_iteratedDeriv_reduced_presentation`. The degree `d > 0` follows from `Q` monic with +`φ(Q) = 0`. At the point `a y₁ + b y₂` and the order `m < S / 2`, `Λ F_q⁽ᵐ⁾(a y₁ + b y₂) = φ(Pol)` with `Λ ≠ 0` and `Pol = ∑ q_{ijkμν} R_{ijkμν}` of `Y`-degree below `d`. Both `|Λ|` and the lengths of the `R_{ijkμν}` are at most `e^(κ₅ A)`, so `Pol` has length at most `e^(β A)`. The `X`-degree of `Pol` now grows with `a`: it is at most `e = M + c (1 + m + S + 2 N a)`. Since `a < 14 t₁ ≤ 14 N / s`, `2 N a ≤ 28 B`, so -`e ≤ (κ + 31 c) B`, where the original has `(κ + 3 c) B`. +`e ≤ (κ + 31 c) B`. If `F_q⁽ᵐ⁾(a y₁ + b y₂) ≠ 0`, the norm of `φ(Pol)` down to `ℚ(ω)` is an integer polynomial `P ≠ 0` of length at most `(c₁ e^(β A))^d` and degree at most `d (e + c₁)`, with @@ -49,20 +51,19 @@ proof accepted on Prove2Me as `FourExp.norm_to_polynomial_alg_column`. namespace FourExponentials -namespace NormToPolynomialAlgColumn +namespace NormToPolynomialAlg open Polynomial /-- A coefficient of an integer polynomial is at most its length. -/ -lemma norm_to_polynomial_alg_column_natAbs_coeff_le (P : Polynomial ℤ) (i : ℕ) : +lemma natAbs_coeff_le (P : Polynomial ℤ) (i : ℕ) : (P.coeff i).natAbs ≤ ∑ j ∈ P.support, (P.coeff j).natAbs := by by_cases hi : i ∈ P.support · exact Finset.single_le_sum (f := fun j => (P.coeff j).natAbs) (fun _ _ => Nat.zero_le _) hi · rw [notMem_support_iff.1 hi]; simp /-- Multiplying by an integer `a` multiplies the length by `|a|` at most. -/ -lemma norm_to_polynomial_alg_column_length_C_C_mul_le {a : ℤ} {P : Polynomial (Polynomial ℤ)} {x y : - ℝ} (ha : |(a : ℝ)| ≤ x) +lemma length_C_C_mul_le {a : ℤ} {P : Polynomial (Polynomial ℤ)} {x y : ℝ} (ha : |(a : ℝ)| ≤ x) (hP : ((∑ k ∈ P.support, ∑ i ∈ (P.coeff k).support, ((P.coeff k).coeff i).natAbs : ℕ) : ℝ) ≤ y) : ((∑ k ∈ (C (C a) * P).support, ∑ i ∈ ((C (C a) * P).coeff k).support, @@ -80,7 +81,7 @@ lemma norm_to_polynomial_alg_column_length_C_C_mul_le {a : ℤ} {P : Polynomial exact mul_le_mul ha hP (Nat.cast_nonneg _) ((abs_nonneg _).trans ha) /-- The length of a sum is at most the number of terms times a bound on their lengths. -/ -lemma norm_to_polynomial_alg_column_length_sum_le {ι : Type*} (s : Finset ι) (f : ι → +lemma norm_to_polynomial_alg_length_sum_le {ι : Type*} (s : Finset ι) (f : ι → Polynomial (Polynomial ℤ)) (B : ℝ) (h : ∀ i ∈ s, ((∑ k ∈ (f i).support, ∑ j ∈ ((f i).coeff k).support, (((f i).coeff k).coeff j).natAbs : ℕ) : ℝ) ≤ B) : @@ -91,39 +92,23 @@ lemma norm_to_polynomial_alg_column_length_sum_le {ι : Type*} (s : Finset ι) ( exact (Finset.sum_le_sum h).trans (by rw [Finset.sum_const, nsmul_eq_mul]) /-- For `A ≥ 1`, a nonnegative `x` is at most `e^(x A)`. -/ -lemma norm_to_polynomial_alg_column_le_exp_mul {x A : ℝ} (hx : 0 ≤ x) (hA : 1 ≤ A) : x ≤ Real.exp (x - * A) := by +lemma le_exp_mul {x A : ℝ} (hx : 0 ≤ x) (hA : 1 ≤ A) : x ≤ Real.exp (x * A) := by nlinarith [Real.add_one_le_exp (x * A), mul_le_mul_of_nonneg_left hA hx] -end NormToPolynomialAlgColumn +end NormToPolynomialAlg -open Polynomial NormToPolynomialAlgColumn in +open Polynomial NormToPolynomialAlg in /-- **A small polynomial, one algebraic column.** Let $x_1,x_2,y_1,y_2,\omega,\omega_1\in\mathbb{C}$ and let $Q\in\mathbb{Z}[X][Y]$ be monic in $Y$ with $Q(\omega,\omega_1)=0$ and minimal there, and suppose that the derivatives of the functions $F_q$ have reduced presentations as in the conclusion -of Lemma . Then the conclusion of Lemma holds. -/ +of `FourExponentials.exists_iteratedDeriv_reduced_presentation_column`. Then the conclusion of +`FourExponentials.norm_to_polynomial_alg` holds. -/ theorem norm_to_polynomial_alg_column (x₁ x₂ y₁ y₂ : ℂ) (ω ω₁ : ℂ) (Q : Polynomial (Polynomial ℤ)) (hQm : Q.Monic) (hQroot : Polynomial.eval₂ (Polynomial.eval₂RingHom (Int.castRingHom ℂ) ω) ω₁ Q = 0) (hQmin : ∀ A : Polynomial (Polynomial ℤ), A.natDegree < Q.natDegree → Polynomial.eval₂ (Polynomial.eval₂RingHom (Int.castRingHom ℂ) ω) ω₁ A = 0 → A = 0) - (hpres : ∃ c : ℕ, ∀ S T M a b m : ℕ, ∃ Λ : ℂ, Λ ≠ 0 ∧ - ‖Λ‖ ≤ (c : ℝ) ^ (c * (1 + m + S + T * (a + b))) ∧ - ∃ R : Fin S → Fin T → Fin T → Fin M → Fin Q.natDegree → Polynomial (Polynomial ℤ), - (∀ i j k μ ν, (R i j k μ ν).natDegree < Q.natDegree) ∧ - (∀ i j k μ ν, ∑ r ∈ (R i j k μ ν).support, ∑ h ∈ ((R i j k μ ν).coeff r).support, - (((R i j k μ ν).coeff r).coeff h).natAbs ≤ - c ^ (c * (1 + m + S + T * (a + b))) * (1 + m + S + T + a + b) ^ (c * (1 + m + S))) ∧ - (∀ i j k μ ν r, ((R i j k μ ν).coeff r).natDegree ≤ M + c * (1 + m + S + T * a)) ∧ - ∀ q : Fin S → Fin T → Fin T → Fin M → Fin Q.natDegree → ℤ, - Λ * iteratedDeriv m (fun z : ℂ => ∑ i : Fin S, ∑ j : Fin T, ∑ k : Fin T, - (∑ μ : Fin M, ∑ ν : Fin Q.natDegree, - ((q i j k μ ν : ℤ) : ℂ) * ω ^ (μ : ℕ) * ω₁ ^ (ν : ℕ)) * z ^ (i : ℕ) * - Complex.exp ((((j : ℕ) : ℂ) * x₁ + ((k : ℕ) : ℂ) * x₂) * z)) - ((a : ℂ) * y₁ + (b : ℂ) * y₂) = - Polynomial.eval₂ (Polynomial.eval₂RingHom (Int.castRingHom ℂ) ω) ω₁ - (∑ i : Fin S, ∑ j : Fin T, ∑ k : Fin T, ∑ μ : Fin M, ∑ ν : Fin Q.natDegree, - Polynomial.C (Polynomial.C (q i j k μ ν)) * R i j k μ ν)) + (hpres : ReducedPresentations x₁ x₂ y₁ y₂ ω ω₁ Q (fun S T a m => 1 + m + S + T * a)) (κ κ' : ℝ) (hκ : 0 < κ) (hκ' : 0 < κ') : ∃ k : ℝ, 0 < k ∧ ∀ C : ℝ, ∃ N₀ : ℕ, ∀ N : ℕ, N₀ < N → ∀ M : ℕ, (M : ℝ) ≤ κ * ⌊(N : ℝ) ^ 2 / Real.sqrt (Real.log (N : ℝ))⌋₊ → @@ -153,6 +138,7 @@ theorem norm_to_polynomial_alg_column Real.sqrt (Real.log 3) else (N : ℝ) ^ 2 * Real.sqrt (Real.log (N : ℝ)))) * (k * (if (N : ℝ) ≤ 3 then (N : ℝ) - 3 + 9 / Real.sqrt (Real.log 3) else (N : ℝ) ^ 2 / Real.sqrt (Real.log (N : ℝ)))))) := by + simp only [ReducedPresentations] at hpres -- The presentation of the derivatives, the norm down to `ℚ(ω)`, and the growth bound for -- the grid `T ≤ 14 N`. obtain ⟨c, hc⟩ := hpres @@ -259,12 +245,15 @@ theorem norm_to_polynomial_alg_column ((Pol.coeff k).coeff i).natAbs = lP := ⟨_, rfl⟩ have hlPe : (lP : ℝ) ≤ Real.exp (β * A) := by rw [← hlP, hPol] - refine (norm_to_polynomial_alg_column_length_sum_le _ _ _ fun i _ => - norm_to_polynomial_alg_column_length_sum_le _ _ _ fun j _ => - norm_to_polynomial_alg_column_length_sum_le _ _ _ fun k' _ => - norm_to_polynomial_alg_column_length_sum_le _ _ _ fun μ _ => - norm_to_polynomial_alg_column_length_sum_le _ _ _ fun ν _ => - norm_to_polynomial_alg_column_length_C_C_mul_le (hqq i j k' μ ν) ((Nat.cast_le.2 (hRl i j k' μ + refine (FourExponentials.NormToPolynomialAlg.norm_to_polynomial_alg_length_sum_le _ _ _ fun i _ + => + FourExponentials.NormToPolynomialAlg.norm_to_polynomial_alg_length_sum_le _ _ _ fun j _ => + FourExponentials.NormToPolynomialAlg.norm_to_polynomial_alg_length_sum_le _ _ _ fun k' _ => + FourExponentials.NormToPolynomialAlg.norm_to_polynomial_alg_length_sum_le _ _ _ fun μ _ => + FourExponentials.NormToPolynomialAlg.norm_to_polynomial_alg_length_sum_le _ _ _ fun ν + _ => + FourExponentials.NormToPolynomialAlg.length_C_C_mul_le (hqq i j k' μ ν) ((Nat.cast_le.2 (hRl i + j k' μ ν)).trans hL5)).trans ?_ simp only [Finset.card_univ, Fintype.card_fin] push_cast @@ -277,7 +266,7 @@ theorem norm_to_polynomial_alg_column _ = 4 * κ * Q.natDegree * (N : ℝ) ^ 6 * (Real.exp (κ * A) * Real.exp (κ₅ * A)) := by ring _ ≤ Real.exp (4 * κ * Q.natDegree * A) * Real.exp (6 * A) * (Real.exp (κ * A) * Real.exp (κ₅ * A)) := by - gcongr; exact norm_to_polynomial_alg_column_le_exp_mul (by positivity) hA1 + gcongr; exact FourExponentials.NormToPolynomialAlg.le_exp_mul (by positivity) hA1 _ = Real.exp (β * A) := by rw [hβ]; simp only [add_mul, Real.exp_add]; ring -- The norm `P` of `φ(Pol)`, and the three bounds. obtain ⟨P, hP0, hPl, hPd, hPv⟩ := @@ -291,7 +280,7 @@ theorem norm_to_polynomial_alg_column mul_le_mul_of_nonneg_left hNa hc0] have hX : ((c₁ * lP : ℕ) : ℝ) ≤ Real.exp ((c₁ + β) * A) := by rw [Nat.cast_mul, add_mul, Real.exp_add] - exact mul_le_mul (norm_to_polynomial_alg_column_le_exp_mul (Nat.cast_nonneg _) hA1) hlPe + exact mul_le_mul (FourExponentials.NormToPolynomialAlg.le_exp_mul (Nat.cast_nonneg _) hA1) hlPe (Nat.cast_nonneg _) (Real.exp_pos _).le have hd0 : (0 : ℝ) ≤ Q.natDegree := Nat.cast_nonneg _ @@ -299,7 +288,7 @@ theorem norm_to_polynomial_alg_column · -- the height rw [ite_eq_right hN3', ← Int.cast_abs, ← Nat.cast_natAbs] have h1 : ((P.coeff i).natAbs : ℝ) ≤ ((c₁ * lP : ℕ) : ℝ) ^ Q.natDegree := by - exact_mod_cast (norm_to_polynomial_alg_column_natAbs_coeff_le P i).trans hPl + exact_mod_cast (FourExponentials.NormToPolynomialAlg.natAbs_coeff_le P i).trans hPl refine h1.trans ((pow_le_pow_left₀ (Nat.cast_nonneg _) hX _).trans ?_) rw [← Real.exp_nat_mul] refine Real.exp_le_exp.2 ?_ diff --git a/LeanPool/FourExponentials/PresentationSize.lean b/LeanPool/FourExponentials/PresentationSize.lean new file mode 100644 index 0000000000..cfd0f62381 --- /dev/null +++ b/LeanPool/FourExponentials/PresentationSize.lean @@ -0,0 +1,285 @@ +/- +Copyright (c) 2026 Carlo Perassi. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: Carlo Perassi +-/ +module + +public import LeanPool.FourExponentials.ExistsIntPowRepr +public import LeanPool.FourExponentials.LengthMulLe +public import LeanPool.FourExponentials.LengthSumLe +public import Mathlib.Analysis.CStarAlgebra.Classes +public import Mathlib.Analysis.SpecialFunctions.ExpDeriv +public import Mathlib.Tactic.Choose +public import Mathlib.Tactic.FunProp +public import Mathlib.Tactic.Ring +public import Mathlib.Tactic.SplitIfs + +/-! +# Sizes of integer presentations + +The length `len P` of `P ∈ ℤ[X][Y]` (the sum of the absolute values of its coefficients), the +size predicate `Sz P b d` (length at most `b`, degrees at most `d` in `X` and in `Y`), and the +presentations and estimates that `exists_iteratedDeriv_presentation`, +`exists_iteratedDeriv_presentation_of_exp_factor` and `exists_iteratedDeriv_presentation_column` +share: the Leibniz expansion of the derivatives of `z^i e^(βz)`, the polynomial presenting each +of its terms, and the size bounds for sums, products and powers. + +From `Diaz/Mirror/exists_iteratedDeriv_presentation.lean` of +[diaz-modulus-lean](https://github.com/carlok/diaz-modulus-lean) at `465147a`, where these +helpers are repeated in each of the three modules. +-/ + +@[expose] public section + +namespace FourExponentials + +namespace PresentationSize + +open Polynomial + +/-- The length of `P ∈ ℤ[X][Y]`: the sum of the absolute values of all its integer coefficients. -/ +noncomputable def len (P : ℤ[X][X]) : ℕ := + ∑ r ∈ P.support, ∑ h ∈ (P.coeff r).support, ((P.coeff r).coeff h).natAbs + +lemma len_mul (P Q : ℤ[X][X]) : len (P * Q) ≤ len P * len Q := + Transcendence.length_mul_le P Q + +lemma len_sum {ι : Type*} (s : Finset ι) (f : ι → ℤ[X][X]) : + len (∑ i ∈ s, f i) ≤ ∑ i ∈ s, len (f i) := + Transcendence.length_sum_le s f + +lemma len_add (P Q : ℤ[X][X]) : len (P + Q) ≤ len P + len Q := by + have h := len_sum (Finset.univ : Finset (Fin 2)) ![P, Q] + rw [Fin.sum_univ_two, Fin.sum_univ_two] at h + exact h + +lemma len_CC (z : ℤ) : len (C (C z)) = z.natAbs := by + rcases eq_or_ne z 0 with rfl | hz + · rw [Polynomial.C_0, Polynomial.C_0, len, Polynomial.support_zero, Finset.sum_empty, + Int.natAbs_zero] + · rw [len, Polynomial.support_C (Polynomial.C_ne_zero.2 hz), Finset.sum_singleton, + Polynomial.coeff_C_zero, Polynomial.support_C hz, Finset.sum_singleton, + Polynomial.coeff_C_zero] + +/-- `P` has length at most `b`, and degrees at most `d` in `X` and in `Y`. -/ +def Sz (P : ℤ[X][X]) (b d : ℕ) : Prop := + len P ≤ b ∧ (∀ r, (P.coeff r).natDegree ≤ d) ∧ P.natDegree ≤ d + +lemma sz_mono {P : ℤ[X][X]} {b b' d d' : ℕ} (h : Sz P b d) (hb : b ≤ b') (hd : d ≤ d') : + Sz P b' d' := + ⟨h.1.trans hb, fun r => (h.2.1 r).trans hd, h.2.2.trans hd⟩ + +lemma sz_mul {P Q : ℤ[X][X]} {b₁ b₂ d₁ d₂ : ℕ} (hP : Sz P b₁ d₁) (hQ : Sz Q b₂ d₂) : + Sz (P * Q) (b₁ * b₂) (d₁ + d₂) := by + refine ⟨(len_mul P Q).trans (Nat.mul_le_mul hP.1 hQ.1), fun r => ?_, + Polynomial.natDegree_mul_le.trans (Nat.add_le_add hP.2.2 hQ.2.2)⟩ + rw [Polynomial.coeff_mul] + exact Polynomial.natDegree_sum_le_of_forall_le _ _ fun x _ => + Polynomial.natDegree_mul_le.trans (Nat.add_le_add (hP.2.1 x.1) (hQ.2.1 x.2)) + +lemma sz_add {P Q : ℤ[X][X]} {b₁ b₂ d : ℕ} (hP : Sz P b₁ d) (hQ : Sz Q b₂ d) : + Sz (P + Q) (b₁ + b₂) d := by + refine ⟨(len_add P Q).trans (Nat.add_le_add hP.1 hQ.1), fun r => ?_, + (Polynomial.natDegree_add_le P Q).trans (max_le hP.2.2 hQ.2.2)⟩ + rw [Polynomial.coeff_add] + exact (Polynomial.natDegree_add_le _ _).trans (max_le (hP.2.1 r) (hQ.2.1 r)) + +lemma sz_sum {ι : Type*} (s : Finset ι) (f : ι → ℤ[X][X]) {b d : ℕ} + (h : ∀ i ∈ s, Sz (f i) b d) : Sz (∑ i ∈ s, f i) (s.card * b) d := by + refine ⟨(len_sum s f).trans ?_, fun r => ?_, + Polynomial.natDegree_sum_le_of_forall_le _ _ fun i hi => (h i hi).2.2⟩ + · rw [← smul_eq_mul, ← Finset.sum_const] + exact Finset.sum_le_sum fun i hi => (h i hi).1 + · rw [Polynomial.finsetSum_coeff] + exact Polynomial.natDegree_sum_le_of_forall_le _ _ fun i hi => (h i hi).2.1 r + +lemma sz_CC (z : ℤ) : Sz (C (C z)) z.natAbs 0 := by + refine ⟨(len_CC z).le, fun r => ?_, (Polynomial.natDegree_C _).le⟩ + rw [Polynomial.coeff_C] + split_ifs + · exact (Polynomial.natDegree_C z).le + · exact Polynomial.natDegree_zero.le + +lemma sz_CN (n : ℕ) : Sz (C (C (n : ℤ))) n 0 := + sz_CC (n : ℤ) + +lemma sz_one : Sz 1 1 0 := by + have h := sz_CC 1 + rw [Polynomial.C_1, Polynomial.C_1] at h + exact h + +lemma sz_pow {P : ℤ[X][X]} {b d : ℕ} (h : Sz P b d) : ∀ n : ℕ, Sz (P ^ n) (b ^ n) (n * d) + | 0 => by + rw [pow_zero, pow_zero, Nat.zero_mul] + exact sz_one + | n + 1 => by + rw [pow_succ, pow_succ, Nat.succ_mul] + exact sz_mul (sz_pow h n) h + +lemma sz_exists (P : ℤ[X][X]) : ∃ c, Sz P c c := by + refine ⟨len P + (∑ k ∈ Finset.range (P.natDegree + 1), (P.coeff k).natDegree) + P.natDegree, + by omega, fun r => ?_, by omega⟩ + by_cases hr : r ≤ P.natDegree + · have : (P.coeff r).natDegree ≤ ∑ k ∈ Finset.range (P.natDegree + 1), (P.coeff k).natDegree := + Finset.single_le_sum (f := fun k => (P.coeff k).natDegree) (fun _ _ => Nat.zero_le _) + (Finset.mem_range.2 (Nat.lt_succ_of_le hr)) + omega + · rw [Polynomial.coeff_eq_zero_of_natDegree_lt (not_le.1 hr), Polynomial.natDegree_zero] + exact Nat.zero_le _ + +lemma sz_exists_fam {ι : Type*} [Finite ι] (F : ι → ℤ[X][X]) : ∃ c, ∀ i, Sz (F i) c c := by + have := Fintype.ofFinite ι + choose c hc using fun i => sz_exists (F i) + have hle : ∀ i, c i ≤ ∑ i', c i' := fun i => + Finset.single_le_sum (f := c) (fun _ _ => Nat.zero_le _) (Finset.mem_univ i) + exact ⟨∑ i, c i, fun i => sz_mono (hc i) (hle i) (hle i)⟩ + +lemma succ_le_two_pow : ∀ m : ℕ, m + 1 ≤ 2 ^ m + | 0 => le_rfl + | m + 1 => by + have := succ_le_two_pow m + rw [pow_succ] + omega + +lemma phi_CC (φ : ℤ[X][X] →+* ℂ) (z : ℤ) : φ (C (C z)) = (z : ℂ) := + eq_intCast (φ.comp ((C : ℤ[X] →+* ℤ[X][X]).comp (C : ℤ →+* ℤ[X]))) z + +/-- If `u φ(D) = φ(U)` and `v φ(D) = φ(V)`, then `(p u + q v) φ(D) = φ(p U + q V)`. -/ +lemma lin_eval (φ : ℤ[X][X] →+* ℂ) {u v : ℂ} {Dp U V : ℤ[X][X]} (hU : u * φ Dp = φ U) + (hV : v * φ Dp = φ V) (p q : ℕ) : + ((p : ℂ) * u + (q : ℂ) * v) * φ Dp = φ (C (C (p : ℤ)) * U + C (C (q : ℤ)) * V) := by + rw [map_add φ, map_mul φ, map_mul φ, phi_CC φ, phi_CC φ, ← hU, ← hV, Int.cast_natCast, + Int.cast_natCast] + ring + +/-- With `r` the coordinates of `Lⁿ αⁿ` in the basis `1, α, …, α^(ℓ-1)` and `φ(H) = α φ(D)`, this +integer polynomial takes the value `φ(D)^(ℓ-1) Lⁿ αⁿ`. -/ +noncomputable def expPres (ℓ : ℕ) (r : ℕ → ℤ) (Hp Dp : ℤ[X][X]) : ℤ[X][X] := + ∑ t ∈ Finset.range ℓ, C (C (r t)) * Hp ^ t * Dp ^ (ℓ - 1 - t) + +lemma expPres_eval (φ : ℤ[X][X] →+* ℂ) (ℓ : ℕ) (r : ℕ → ℤ) (Hp Dp : ℤ[X][X]) {α : ℂ} + (hH : α * φ Dp = φ Hp) : + φ (expPres ℓ r Hp Dp) = φ Dp ^ (ℓ - 1) * ∑ t ∈ Finset.range ℓ, (r t : ℂ) * α ^ t := by + rw [expPres, map_sum φ, Finset.mul_sum] + refine Finset.sum_congr rfl fun t ht => ?_ + have ht' := Finset.mem_range.1 ht + have hsplit : φ Dp ^ (ℓ - 1) = φ Dp ^ t * φ Dp ^ (ℓ - 1 - t) := by + rw [← pow_add] + congr 1 + omega + rw [map_mul φ, map_mul φ, map_pow φ, map_pow φ, ← hH, phi_CC φ, hsplit, mul_pow] + ring + +lemma sz_expPres (ℓ : ℕ) (r : ℕ → ℤ) {Hp Dp : ℤ[X][X]} {c R : ℕ} (hH : Sz Hp c c) + (hD : Sz Dp c c) (hr : ∀ t, (r t).natAbs ≤ R) : + Sz (expPres ℓ r Hp Dp) (ℓ * (R * c ^ (ℓ - 1))) ((ℓ - 1) * c) := by + have h : Sz (expPres ℓ r Hp Dp) ((Finset.range ℓ).card * (R * c ^ (ℓ - 1))) ((ℓ - 1) * c) := + sz_sum (Finset.range ℓ) _ fun t ht => by + have ht' := Finset.mem_range.1 ht + have he : t + (ℓ - 1 - t) = ℓ - 1 := by omega + refine sz_mono (sz_mul (sz_mul (sz_CC (r t)) (sz_pow hH t)) (sz_pow hD (ℓ - 1 - t))) ?_ ?_ + · rw [Nat.mul_assoc, ← pow_add, he] + exact Nat.mul_le_mul_right _ (hr t) + · rw [Nat.zero_add, ← Nat.add_mul, he] + rw [Finset.card_range] at h + exact h + +/-- `φ(D)^(ℓ-1) L^N αⁿ` as an integer polynomial, for `n ≤ N`. -/ +noncomputable def fac (ℓ : ℕ) (r : ℕ → ℕ → ℤ) (Lc : ℤ) (Hp Dp : ℤ[X][X]) (N n : ℕ) : ℤ[X][X] := + C (C (Lc ^ (N - n))) * expPres ℓ (r n) Hp Dp + +lemma fac_eval (φ : ℤ[X][X] →+* ℂ) (ℓ : ℕ) (r : ℕ → ℕ → ℤ) (Lc : ℤ) (Hp Dp : ℤ[X][X]) {α : ℂ} + (hH : α * φ Dp = φ Hp) + (hr : ∀ n, (Lc : ℂ) ^ n * α ^ n = ∑ t ∈ Finset.range ℓ, (r n t : ℂ) * α ^ t) + {N n : ℕ} (hn : n ≤ N) : + φ (fac ℓ r Lc Hp Dp N n) = φ Dp ^ (ℓ - 1) * (Lc : ℂ) ^ N * α ^ n := by + rw [fac, map_mul φ, phi_CC φ, expPres_eval φ ℓ (r n) Hp Dp hH, ← hr n, Int.cast_pow] + have hsplit : (Lc : ℂ) ^ N = (Lc : ℂ) ^ (N - n) * (Lc : ℂ) ^ n := by + rw [← pow_add, Nat.sub_add_cancel hn] + rw [hsplit] + ring + +lemma exp_split (x₁ x₂ y₁ y₂ : ℂ) (a b j k : ℕ) : + Complex.exp (((j : ℂ) * x₁ + (k : ℂ) * x₂) * ((a : ℂ) * y₁ + (b : ℂ) * y₂)) = + Complex.exp (![x₁, x₂] 0 * ![y₁, y₂] 0) ^ (j * a) * + Complex.exp (![x₁, x₂] 0 * ![y₁, y₂] 1) ^ (j * b) * + Complex.exp (![x₁, x₂] 1 * ![y₁, y₂] 0) ^ (k * a) * + Complex.exp (![x₁, x₂] 1 * ![y₁, y₂] 1) ^ (k * b) := by + change _ = Complex.exp (x₁ * y₁) ^ (j * a) * Complex.exp (x₁ * y₂) ^ (j * b) * + Complex.exp (x₂ * y₁) ^ (k * a) * Complex.exp (x₂ * y₂) ^ (k * b) + rw [← Complex.exp_nat_mul, ← Complex.exp_nat_mul, ← Complex.exp_nat_mul, ← Complex.exp_nat_mul, + ← Complex.exp_add, ← Complex.exp_add, ← Complex.exp_add] + congr 1 + push_cast + ring + +lemma norm_mul_le_pow {x y : ℂ} {C : ℝ} {p q : ℕ} (hx : ‖x‖ ≤ C ^ p) (hy : ‖y‖ ≤ C ^ q) : + ‖x * y‖ ≤ C ^ (p + q) := by + rw [norm_mul, pow_add] + exact mul_le_mul hx hy (norm_nonneg y) ((norm_nonneg x).trans hx) + +lemma norm_pow_le_pow {x : ℂ} {C : ℝ} (hx : ‖x‖ ≤ C) (n : ℕ) : ‖x ^ n‖ ≤ C ^ n := by + rw [norm_pow] + exact pow_le_pow_left₀ (norm_nonneg x) hx n + +/-- Leibniz's rule for the exponential polynomial, linearly in its coefficients. -/ +lemma iteratedDeriv_expPoly (S T m : ℕ) (x₁ x₂ : ℂ) (f : Fin S → Fin T → Fin T → ℂ) (w : ℂ) : + iteratedDeriv m (fun z : ℂ => ∑ i : Fin S, ∑ j : Fin T, ∑ k : Fin T, + f i j k * z ^ (i : ℕ) * Complex.exp ((((j : ℕ) : ℂ) * x₁ + ((k : ℕ) : ℂ) * x₂) * z)) w = + ∑ i : Fin S, ∑ j : Fin T, ∑ k : Fin T, f i j k * + ∑ l ∈ Finset.range (m + 1), (m.choose l : ℂ) * + (((i : ℕ).descFactorial l : ℂ) * w ^ ((i : ℕ) - l)) * + ((((j : ℕ) : ℂ) * x₁ + ((k : ℕ) : ℂ) * x₂) ^ (m - l) * + Complex.exp ((((j : ℕ) : ℂ) * x₁ + ((k : ℕ) : ℂ) * x₂) * w)) := by + have key : ∀ (i : Fin S) (j k : Fin T), iteratedDeriv m (fun z : ℂ => + f i j k * z ^ (i : ℕ) * Complex.exp ((((j : ℕ) : ℂ) * x₁ + ((k : ℕ) : ℂ) * x₂) * z)) w = + f i j k * ∑ l ∈ Finset.range (m + 1), (m.choose l : ℂ) * + (((i : ℕ).descFactorial l : ℂ) * w ^ ((i : ℕ) - l)) * + ((((j : ℕ) : ℂ) * x₁ + ((k : ℕ) : ℂ) * x₂) ^ (m - l) * + Complex.exp ((((j : ℕ) : ℂ) * x₁ + ((k : ℕ) : ℂ) * x₂) * w)) := by + intro i j k + have h1 : ContDiffAt ℂ m (fun z : ℂ => z ^ (i : ℕ)) w := (contDiff_id.pow _).contDiffAt + have h2 : ContDiffAt ℂ m (fun z : ℂ => + Complex.exp ((((j : ℕ) : ℂ) * x₁ + ((k : ℕ) : ℂ) * x₂) * z)) w := by fun_prop + simp_rw [mul_assoc (f i j k)] + rw [iteratedDeriv_const_mul_field, iteratedDeriv_fun_mul h1 h2] + congr 1 + refine Finset.sum_congr rfl fun l _ => ?_ + rw [iteratedDeriv_pow, iteratedDeriv_cexp_const_mul] + rw [iteratedDeriv_fun_sum (fun i _ => by fun_prop)] + refine Finset.sum_congr rfl fun i _ => ?_ + rw [iteratedDeriv_fun_sum (fun j _ => by fun_prop)] + refine Finset.sum_congr rfl fun j _ => ?_ + rw [iteratedDeriv_fun_sum (fun k _ => by fun_prop)] + exact Finset.sum_congr rfl fun k _ => key i j k + +/-- The integer polynomial `∑_{l ≤ m} C(m,l) i(i-1)⋯(i-l+1) D^l B^(m-l) Z^(i-l) D^(S-i+l) e`. -/ +noncomputable def pres (Dp Bp Zp ep : ℤ[X][X]) (S m i : ℕ) : ℤ[X][X] := + ∑ l ∈ Finset.range (m + 1), C (C ((m.choose l * i.descFactorial l : ℕ) : ℤ)) * + (Dp ^ l * Bp ^ (m - l) * Zp ^ (i - l) * Dp ^ (S - i + l)) * ep + +lemma pres_eval (φ : ℤ[X][X] →+* ℂ) {Dp Bp Zp ep : ℤ[X][X]} {β ζ Λ' e : ℂ} + (hB : β * φ Dp = φ Bp) (hZ : ζ * φ Dp = φ Zp) (he : φ ep = Λ' * e) {S m i : ℕ} (hi : i < S) : + φ (pres Dp Bp Zp ep S m i) = φ Dp ^ (m + S) * Λ' * + ∑ l ∈ Finset.range (m + 1), (m.choose l : ℂ) * ((i.descFactorial l : ℂ) * ζ ^ (i - l)) * + (β ^ (m - l) * e) := by + rw [pres, map_sum φ, Finset.mul_sum] + refine Finset.sum_congr rfl fun l hl => ?_ + have hl' := Finset.mem_range.1 hl + simp only [map_mul φ, map_pow φ] + rw [← hB, ← hZ, he, phi_CC φ, Int.cast_natCast, Nat.cast_mul] + rcases Nat.lt_or_ge i l with h | h + · rw [Nat.descFactorial_eq_zero_iff_lt.2 h, Nat.cast_zero] + ring + · have hδ : φ Dp ^ (m + S) = + φ Dp ^ l * φ Dp ^ (m - l) * φ Dp ^ (i - l) * φ Dp ^ (S - i + l) := by + rw [← pow_add, ← pow_add, ← pow_add] + congr 1 + omega + rw [hδ, mul_pow, mul_pow] + ring + +end PresentationSize + +end FourExponentials diff --git a/LeanPool/FourExponentials/RankOneParametrization.lean b/LeanPool/FourExponentials/RankOneParametrization.lean index 12a3a2d5ea..aa2e85297d 100644 --- a/LeanPool/FourExponentials/RankOneParametrization.lean +++ b/LeanPool/FourExponentials/RankOneParametrization.lean @@ -84,7 +84,7 @@ theorem rank_one_parametrization : ∀ l₁₁ l₁₂ l₂₁ l₂₂ : ℂ, IsAlgebraic ℚ (Complex.exp l₁₁) → IsAlgebraic ℚ (Complex.exp l₁₂) → IsAlgebraic ℚ (Complex.exp l₂₁) → IsAlgebraic ℚ (Complex.exp l₂₂) → - l₁₁ ≠ 0 → l₁₂ ≠ 0 → l₂₁ ≠ 0 → l₂₂ ≠ 0 → + l₁₁ ≠ 0 → l₁₁ * l₂₂ = l₁₂ * l₂₁ → Algebra.trdeg ℚ ↥(Algebra.adjoin ℚ ({l₁₁, l₁₂, l₂₁, l₂₂} : Set ℂ)) ≤ 1 → ¬ (∃ a b : ℚ, ¬(a = 0 ∧ b = 0) ∧ @@ -94,7 +94,7 @@ theorem rank_one_parametrization : ∃ x₁ x₂ y₁ y₂ : ℂ, LinearIndependent ℚ ![x₁, x₂] ∧ LinearIndependent ℚ ![y₁, y₂] ∧ (∀ i j : Fin 2, IsAlgebraic ℚ (Complex.exp (![x₁, x₂] i * ![y₁, y₂] j))) ∧ Algebra.trdeg ℚ ↥(Algebra.adjoin ℚ ({x₁, x₂, y₁, y₂} : Set ℂ)) ≤ 1 := by - intro l₁₁ l₁₂ l₂₁ l₂₂ he11 he12 he21 he22 h11 h12 h21 h22 hrank htr hcols hrows + intro l₁₁ l₁₂ l₂₁ l₂₂ he11 he12 he21 he22 h11 hrank htr hcols hrows have ht12 : l₁₁ * (l₁₂ / l₁₁) = l₁₂ := by field_simp have ht22 : l₂₁ * (l₁₂ / l₁₁) = l₂₂ := by field_simp diff --git a/LeanPool/FourExponentials/SmallIrreducibleFactor.lean b/LeanPool/FourExponentials/SmallIrreducibleFactor.lean index abb1e0dee2..ee56343913 100644 --- a/LeanPool/FourExponentials/SmallIrreducibleFactor.lean +++ b/LeanPool/FourExponentials/SmallIrreducibleFactor.lean @@ -46,7 +46,7 @@ irreducible divisor $Q$ of $P$ and an integer $s\ge1$ with $$ |Q(\alpha)|N_0$ a polynomial $P_N\in\mathbb{Z}[X]$ that is small at $\omega$ for $(N,C)$ with respect to $\sigma_1,\sigma_2$. -/ theorem small_polynomials_of_column : diff --git a/LeanPool/FourExponentials/SmallPolynomialsOfCounterexample.lean b/LeanPool/FourExponentials/SmallPolynomialsOfCounterexample.lean index 7200d882dc..78868e33e4 100644 --- a/LeanPool/FourExponentials/SmallPolynomialsOfCounterexample.lean +++ b/LeanPool/FourExponentials/SmallPolynomialsOfCounterexample.lean @@ -17,7 +17,9 @@ $l_{11}l_{22}=l_{12}l_{21}$ and $\operatorname{trdeg}_{\mathbb{Q}}\mathbb{Q}[l_{11},l_{12},l_{21},l_{22}] \le1$, and suppose that neither the rows nor the columns of $(l_{ij})$ are linearly dependent over $\mathbb{Q}$. Then there are a transcendental $\omega\in\mathbb{C}$, functions $\sigma_1,\sigma_2$ and constants -$a_1,a_2\ge1$ satisfying the hypotheses of Theorem , such that for every $C\in\mathbb{R}$ there is +$a_1,a_2\ge1$ satisfying the hypotheses of `FourExponentials.transcendence_criterion`, such that for +every +$C\in\mathbb{R}$ there is $N_0$ and for every $N>N_0$ a polynomial $P_N\in\mathbb{Z}[X]$ that is small at $\omega$ for $(N,C)$ with respect to $\sigma_1,\sigma_2$. @@ -52,14 +54,16 @@ complex numbers with every $e^{l_{ij}}$ algebraic, $l_{11}l_{22}=l_{12}l_{21}$ a $\operatorname{trdeg}_{\mathbb{Q}}\mathbb{Q}[l_{11},l_{12},l_{21},l_{22}] \le1$, and suppose that neither the rows nor the columns of $(l_{ij})$ are linearly dependent over $\mathbb{Q}$. Then there are a transcendental $\omega\in\mathbb{C}$, functions $\sigma_1,\sigma_2$ and constants -$a_1,a_2\ge1$ satisfying the hypotheses of Theorem , such that for every $C\in\mathbb{R}$ there is +$a_1,a_2\ge1$ satisfying the hypotheses of `FourExponentials.transcendence_criterion`, such that for +every +$C\in\mathbb{R}$ there is $N_0$ and for every $N>N_0$ a polynomial $P_N\in\mathbb{Z}[X]$ that is small at $\omega$ for $(N,C)$ with respect to $\sigma_1,\sigma_2$. -/ theorem small_polynomials_of_counterexample : ∀ l₁₁ l₁₂ l₂₁ l₂₂ : ℂ, IsAlgebraic ℚ (Complex.exp l₁₁) → IsAlgebraic ℚ (Complex.exp l₁₂) → IsAlgebraic ℚ (Complex.exp l₂₁) → IsAlgebraic ℚ (Complex.exp l₂₂) → - l₁₁ ≠ 0 → l₁₂ ≠ 0 → l₂₁ ≠ 0 → l₂₂ ≠ 0 → + l₁₁ ≠ 0 → l₁₁ * l₂₂ = l₁₂ * l₂₁ → Algebra.trdeg ℚ ↥(Algebra.adjoin ℚ ({l₁₁, l₁₂, l₂₁, l₂₂} : Set ℂ)) ≤ 1 → ¬ (∃ a b : ℚ, ¬(a = 0 ∧ b = 0) ∧ @@ -78,10 +82,10 @@ theorem small_polynomials_of_counterexample : (∀ i : ℕ, |((P N).coeff i : ℝ)| ≤ Real.exp (σ₁ N)) ∧ ((P N).natDegree : ℝ) ≤ σ₂ N ∧ ‖Polynomial.aeval ω (P N)‖ < Real.exp (-(C * σ₁ N * σ₂ N)) := by - intro l₁₁ l₁₂ l₂₁ l₂₂ e₁₁ e₁₂ e₂₁ e₂₂ n₁₁ n₁₂ n₂₁ n₂₂ hdet htr hrows hcols + intro l₁₁ l₁₂ l₂₁ l₂₂ e₁₁ e₁₂ e₂₁ e₂₂ n₁₁ hdet htr hrows hcols obtain ⟨ω, hω, σ₁, σ₂, hm₁, hm₂, ht₁, ht₂, a₁, a₂, ha₁, ha₂, h₂₁, hg₁, hg₂, x₁, x₂, y₁, y₂, hx, hy, hC⟩ := - auxiliary_construction l₁₁ l₁₂ l₂₁ l₂₂ e₁₁ e₁₂ e₂₁ e₂₂ n₁₁ n₁₂ n₂₁ n₂₂ hdet htr hrows hcols + auxiliary_construction l₁₁ l₁₂ l₂₁ l₂₂ e₁₁ e₁₂ e₂₁ e₂₂ n₁₁ hdet htr hrows hcols refine ⟨ω, hω, σ₁, σ₂, hm₁, hm₂, ht₁, ht₂, a₁, a₂, ha₁, ha₂, h₂₁, hg₁, hg₂, fun C => ?_⟩ obtain ⟨N₀, hN⟩ := hC C have key : ∀ N : ℕ, N₀ < N → ∃ P : Polynomial ℤ, P ≠ 0 ∧ diff --git a/LeanPool/FourExponentials/TranscendenceCriterionContinuous.lean b/LeanPool/FourExponentials/TranscendenceCriterionContinuous.lean index 07b98678f2..87813b77d9 100644 --- a/LeanPool/FourExponentials/TranscendenceCriterionContinuous.lean +++ b/LeanPool/FourExponentials/TranscendenceCriterionContinuous.lean @@ -134,7 +134,7 @@ theorem transcendence_criterion_continuous have hpα : ‖aeval α (P q).primPart‖ ≤ ‖aeval α (P q)‖ := by conv_rhs => rw [hdec, map_mul, aeval_C, norm_mul] exact le_mul_of_one_le_left (norm_nonneg _) (by simpa using hc1) - obtain ⟨Q, -, hprim, hirr, s, hs, hQα, hQh, hQd⟩ := small_irreducible_factor α hα + obtain ⟨Q, -, hprim, hirr, s, hs, hQα, hQh, hQd⟩ := small_irreducible_factor α (P q).primPart (isPrimitive_primPart _) (Real.exp (σ₁ q)) (σ₂ q) C hpH (by rw [Real.log_exp]; exact h₂₁ q (by linarith)) (by rw [natDegree_primPart]; exact hP_deg q hq) (by linarith) diff --git a/LeanPool/FourExponentials/TrdegOnePresentationColumn.lean b/LeanPool/FourExponentials/TrdegOnePresentationColumn.lean index f0abdfdc90..0bb456caef 100644 --- a/LeanPool/FourExponentials/TrdegOnePresentationColumn.lean +++ b/LeanPool/FourExponentials/TrdegOnePresentationColumn.lean @@ -12,6 +12,7 @@ public import Mathlib.Tactic.Convert public import Mathlib.Tactic.FinCases public import Mathlib.Tactic.NormNum public import Mathlib.Tactic.Set +public import LeanPool.FourExponentials.TrdegOnePresentation /-! # The column data in transcendence degree one @@ -37,32 +38,6 @@ namespace FourExponentials namespace TrdegOnePresentationColumn -/-- In `ℚ[S] ⊆ ℂ` of transcendence degree at most one, every element is algebraic over `ℚ(ω)`, -for any transcendental `ω ∈ ℚ[S]`. -/ -lemma trdeg_one_presentation_column_isAlgebraic_of_trdeg_le_one (S : Set ℂ) (htr : Algebra.trdeg ℚ - ↥(Algebra.adjoin ℚ S) ≤ 1) - {ω z : ℂ} (hωS : ω ∈ Algebra.adjoin ℚ S) (hzS : z ∈ Algebra.adjoin ℚ S) - (hω : Transcendental ℚ ω) : - IsAlgebraic (IntermediateField.adjoin ℚ ({ω} : Set ℂ)) z := by - rw [IntermediateField.isAlgebraic_adjoin_iff] - by_contra hz - have hind : AlgebraicIndependent ℚ (fun _ : Unit => ω) := - (algebraicIndependent_singleton_iff ()).2 hω - have htrans : Transcendental (Algebra.adjoin ℚ (Set.range fun _ : Unit => ω)) z := by - rw [Set.range_const] - exact hz - have hopt := (hind.option_iff_transcendental z).2 htrans - let v : Option Unit → Algebra.adjoin ℚ S := fun o => o.elim ⟨z, hzS⟩ (fun _ => ⟨ω, hωS⟩) - have hv : AlgebraicIndependent ℚ v := by - refine AlgebraicIndependent.of_comp (Algebra.adjoin ℚ S).val ?_ - convert hopt using 1 - funext o - cases o <;> rfl - have hcard := hv.cardinalMk_le_trdeg - rw [show Cardinal.mk (Option Unit) = 2 by simp] at hcard - have := hcard.trans htr - norm_num at this - end TrdegOnePresentationColumn open TrdegOnePresentationColumn in @@ -103,13 +78,13 @@ theorem trdeg_one_presentation_column (Sum.elim (fun j => ![y₁, y₂] j) (fun p => Complex.exp (![x₁, x₂] p.1 * ![y₁, y₂] p.2))) have hf : ∀ o, IsAlgebraic (IntermediateField.adjoin ℚ ({x₁ * y₂} : Set ℂ)) (f o) := by rintro (i | j | ⟨p, q⟩) - · exact trdeg_one_presentation_column_isAlgebraic_of_trdeg_le_one _ htr hωS + · exact FourExponentials.TrdegOnePresentation.isAlgebraic_of_trdeg_le_one _ htr hωS (hS (![x₁, x₂] i) (by fin_cases i <;> simp [hsix])) hω - · exact trdeg_one_presentation_column_isAlgebraic_of_trdeg_le_one _ htr hωS + · exact FourExponentials.TrdegOnePresentation.isAlgebraic_of_trdeg_le_one _ htr hωS (hS (![y₁, y₂] j) (by fin_cases j <;> simp [hsix])) hω · fin_cases q · -- the row `e^{x_p y₁}` is one of the six generators - exact trdeg_one_presentation_column_isAlgebraic_of_trdeg_le_one _ htr hωS + exact FourExponentials.TrdegOnePresentation.isAlgebraic_of_trdeg_le_one _ htr hωS (hS (Complex.exp (![x₁, x₂] p * y₁)) (by fin_cases p <;> simp [hsix])) hω · -- the column `e^{x_p y₂}` is algebraic over `ℚ` exact IsAlgebraic.tower_top (L := IntermediateField.adjoin ℚ ({x₁ * y₂} : Set ℂ)) diff --git a/LeanPool/FourExponentials/ZeroCountArith.lean b/LeanPool/FourExponentials/ZeroCountArith.lean index ec432caf8e..48fb5cd6b3 100644 --- a/LeanPool/FourExponentials/ZeroCountArith.lean +++ b/LeanPool/FourExponentials/ZeroCountArith.lean @@ -126,7 +126,7 @@ $$ \sigma\log\frac{R-x}{x+1} \le\log\Bigl(n!\,2^{n+1}\frac{R}{R-1}\Bigr)+2R, $$ then $$ \sigma<\frac{n}{\lambda}+2\,\frac{1+n^{\lambda}}{\lambda\log n}\,(1+x). $$ -/ theorem zero_count_arith - (n : ℕ) (hn : 2 ≤ n) (x lam : ℝ) (hx : 0 ≤ x) (hlam : 0 < lam) (σ : ℝ) (_hσ : 0 ≤ σ) + (n : ℕ) (hn : 2 ≤ n) (x lam : ℝ) (hx : 0 ≤ x) (hlam : 0 < lam) (σ : ℝ) (h : ∀ R : ℝ, x + 1 < R → σ * Real.log ((R - x) / (x + 1)) ≤ Real.log ((n.factorial : ℝ) * 2 ^ (n + 1) * R / (R - 1)) + 2 * R) : diff --git a/LeanPool/FourExponentials/ZeroCountDegenerate.lean b/LeanPool/FourExponentials/ZeroCountDegenerate.lean index d032f5f369..4b8d9fe908 100644 --- a/LeanPool/FourExponentials/ZeroCountDegenerate.lean +++ b/LeanPool/FourExponentials/ZeroCountDegenerate.lean @@ -15,7 +15,9 @@ public import Mathlib.Tactic.Ring /-! # The degenerate cases -Let $f$, $n$ and $\Omega$ be as in Lemma , without the hypothesis $\Omega>0$, and suppose that +Let $f$, $n$ and $\Omega$ be as in `FourExponentials.expPoly_zero_count_scaled`, without the +hypothesis +$\Omega>0$, and suppose that $n\le1$ or $\Omega=0$. Then for every finite set $S\subset\mathbb{C}$ $$ \sum_{z\in S}\operatorname{ord}_zf\le n-1. $$ @@ -79,7 +81,9 @@ theorem sum_order_le (P : ℂ[X]) (hP : P ≠ 0) (c : ℂ) (S : Finset ℂ) : end FourExpDeg -/-- **The degenerate cases.** Let $f$, $n$ and $\Omega$ be as in Lemma , without the hypothesis +/-- **The degenerate cases.** Let $f$, $n$ and $\Omega$ be as in + `FourExponentials.expPoly_zero_count_scaled`, + without the hypothesis $\Omega>0$, and suppose that $n\le1$ or $\Omega=0$. Then for every finite set $S\subset\mathbb{C}$ $$ \sum_{z\in S}\operatorname{ord}_zf\le n-1. $$ -/ theorem zero_count_degenerate diff --git a/LeanPool/projects/four-exponentials-trdeg-one.yaml b/LeanPool/projects/four-exponentials-trdeg-one.yaml index 4f88a3dd0f..508a3f0c72 100644 --- a/LeanPool/projects/four-exponentials-trdeg-one.yaml +++ b/LeanPool/projects/four-exponentials-trdeg-one.yaml @@ -25,7 +25,7 @@ source: - Michel Waldschmidt url: https://github.com/carlok/four-exponentials-palomar github_repo: carlok/four-exponentials-palomar - commit: 8eb91e1664667ce90fa4f59272921c228f27d485 + commit: 54998b27ea7a0a385e7e2ba1ee647dde429aacc2 announcement: https://palomar-registry.org/entry?id=PALOMAR-2026-11-28-000054&version=1 announcement_date: '2026-11-28' citation: 'M. Waldschmidt, Solution du huitième problème de Schneider, J. Number Theory 5 (1973),