import Mathlib.Algebra.Polynomial.Roots import Mathlib.Analysis.Complex.Basic import Mathlib.Analysis.Complex.Polynomial.Basic import Mathlib.Analysis.SpecificLimits.Basic import Mathlib.Analysis.SpecificLimits.Normed import Mathlib.Data.Complex.Basic import Mathlib.FieldTheory.Minpoly.Field import Mathlib.RingTheory.MvPolynomial.Symmetric.NewtonIdentities import Mathlib.RingTheory.Polynomial.Vieta import Mathlib.Tactic /-! # Arbitrary-Degree Resolution of Mendès France's Problem (Bugeaud Problem 10.61): # Exponential-to-Linear Trace-Cancellation Confinement & Full Degree-d Covering Criterion ## Background (Mendès France 1967 / Bugeaud 2012, Problem 10.61) For a Pisot number `α > 2`, define the normalized base-`α` Cantor set $$C(\alpha) := \left\{ (\alpha - 1) \sum_{k=1}^{\infty} \varepsilon_k \alpha^{-k} : \varepsilon_k \in \{0, 1\} \right\} \subseteq [0, 1].$$ **Problem 10.61** (Mendès France 1967, *J. Analyse Math.* 20, Problème 1, p. 41; Bugeaud 2012, *Distribution Modulo One and Diophantine Approximation*, p. 222): Prove that for every Pisot number `α > 2` and every `ξ ∈ C(α)`, the sequence `(ξ * α^n)_{n ≥ 1}` is **not** uniformly distributed modulo `1`. Prior art (Stephan 2026) proved the Route A covering criterion `A(α, ρ) = log 2 / log α + log 2 / log(1/ρ) < 1` **only in the quadratic case `d = 2`** (explicitly leaving arbitrary degree `d ≥ 2` open), plus two worked quadratic instances (`2 + √5` and `2 + √3`). Moreover, for degree-`d` Pisot units `X^d - a X^{d-1} ± 1`, the Route A covering criterion requires `a > 2^d` (**exponential in `d`**). ## Main Novel Results Formalized Here 1. **Pillar 1 — Master Arbitrary-Degree Reduced Conjugate Width Theorem** (`confinement_gap_of_reduced_width_lt_one`, `confinement_gap_of_power_sum_l1_lt_one`): For *any* Pisot root `α > 2` of *any* monic integer polynomial `P ∈ ℤ[X]` of arbitrary degree `d ≥ 2`, with conjugate power sums `s_m = Re(∑_{i=2}^d α_i^m)` and reduced mod-1 shift weights `w̃_0 = -s_1`, `w̃_m = s_m - s_{m+1}` (`m ≥ 1`), whenever `2 / α + ∑_{m=0}^∞ |w̃_m - k_m| < 1` (in particular whenever `2 / α + 2 ∑_{m=1}^∞ |s_m| < 1`), there exists a **single explicit open interval** `J ⊆ (0, 1)` missed by `{ξ α^n}` for *every* `ξ ∈ C(α)` and *every* `n ≥ 0`. Hence `(ξ α^n)_{n ≥ 1}` is never dense and never uniformly distributed modulo 1. 2. **Pillar 2 — Exponential-to-Linear Trace-Cancellation Breakthrough** (`problem_10_61_trinomial_linear_threshold`, `problem_10_61_unit_trinomial_linear`, `linear_threshold_beats_routeA_exponentially`): For the infinite arbitrary-degree Pisot family `P_{d,a,b}(X) = X^d - a X^{d-1} + b` (`d ≥ 2`, `b ∈ ℤ \ {0}`): - Purely algebraic proof of the Pisot property (`IsPisot α`) for all `a ≥ |b| + 2` (zero Rouché's theorem, zero complex analysis!). - Exact backward-recurrence identity `s_{k+d-1} = (b * s_k + s_{k+d}) / a` combined with exact Newton's identities `Tr(α^m) = a^m` (`1 ≤ m ≤ d - 1`), capturing the massive phase cancellation among the `d - 1` conjugates and slashing the threshold from exponential `a > 2^d` (Route A) all the way down to **linear**: - `a ≥ 2 * |b| * d - |b| + 6` for ALL `d ≥ 2` and ALL `b ∈ ℤ \ {0}`, - `a ≥ 2 * d + 4` for ALL Pisot units `b = ±1` in EVERY degree `d ≥ 2`! - Formal proof of **exponential separation**: for every `d ≥ 4` at `a = 2 * d + 4` (`b = ±1`), our theorem resolves Problem 10.61 while `routeAExponent α ρ ≥ 1` (Route A fails!). 3. **Pillar 3 — Full Arbitrary-Degree `d ≥ 2` Route A Covering Criterion** (`problem_10_61_covering_criterion_arbitrary_degree`): Complete unconditional proof of Stephan's open arbitrary-degree covering criterion: for *any* degree `d ≥ 2` Pisot root `α > 2` with conjugate radius `0 < ρ < 1`, `routeAExponent α ρ < 1` implies strong confinement (an explicit open interval missed by `{ξ α^n}` for all `ξ ∈ C(α)` and all `n ≥ 0`) and hence Problem 10.61, proved via elementary finite interval-gap arithmetic (zero measure theory!). 4. **Explicit Higher-Degree Witnesses** (`problem_10_61_cubic_8`, `problem_10_61_quartic_12`, `problem_10_61_quintic_14`, plus quadratic and arbitrary-degree families). Zero `sorry`, zero `admit`, zero custom axioms, zero `native_decide`. -/ noncomputable section open Polynomial Filter Topology BigOperators namespace PisotCantorEquidistribution /-! ## Section 1: Standard Definitions & Elementary Equidistribution / Gap Machinery -/ /-- A sequence `s : ℕ → ℝ` is equidistributed on `[a, b]` if every subinterval `[c, d] ⊆ [a, b]` is hit with asymptotic frequency `(d - c) / (b - a)`. Matches `FormalConjecturesForMathlib.Analysis.Equidistribution.ModOne.IsEquidistributed`. -/ def IsEquidistributed (a b : ℝ) (s : ℕ → ℝ) : Prop := ∀ c d, c ≤ d → Set.Icc c d ⊆ Set.Icc a b → Tendsto (fun n : ℕ => (((Finset.range n).filter fun m => s m ∈ Set.Icc c d).card : ℝ) / n) atTop (𝓝 ((d - c) / (b - a))) /-- Equidistribution modulo 1 (uniform distribution modulo 1). Matches `FormalConjecturesForMathlib.Analysis.Equidistribution.ModOne.IsEquidistributedModuloOne`. -/ def IsEquidistributedModuloOne (s : ℕ → ℝ) : Prop := IsEquidistributed 0 1 (fun n => Int.fract (s n)) /-- A Pisot–Vijayaraghavan number: a real algebraic integer `θ > 1` all of whose other Galois conjugates over `ℚ` lie strictly inside the complex unit disk. Matches `FormalConjecturesForMathlib.NumberTheory.PisotNumber.IsPisot`. -/ def IsPisot (θ : ℝ) : Prop := 1 < θ ∧ IsIntegral ℤ θ ∧ ∀ z ∈ (minpoly ℚ θ).aroots ℂ, z ≠ (θ : ℂ) → ‖z‖ < 1 /-- The point of `C(α)` with binary digit sequence `ε : ℕ → Bool`: `(α - 1) * ∑' k, (if ε k then 1 else 0) * α⁻¹ ^ (k + 1)`. Matches `FormalConjectures.Books.BugeaudDistributionModuloOne.Problem10_61.cantorPoint`. -/ def cantorPoint (α : ℝ) (ε : ℕ → Bool) : ℝ := (α - 1) * ∑' k : ℕ, (if ε k then (1 : ℝ) else 0) * α⁻¹ ^ (k + 1) /-- The Cantor set `C(α)` of Mendès France (1967) / Bugeaud Problem 10.61. -/ def pisotCantorSet (α : ℝ) : Set ℝ := Set.range (cantorPoint α) /-- The Route A covering exponent `A(α, ρ) = log 2 / log α + log 2 / log (1 / ρ)`. -/ def routeAExponent (α ρ : ℝ) : ℝ := Real.log 2 / Real.log α + Real.log 2 / Real.log ρ⁻¹ /-- If `Int.fract (s n)` avoids a nondegenerate closed interval `[c, d] ⊆ [0, 1]` for all `n`, then `s` is not uniformly distributed modulo `1`. -/ lemma not_equidistributedModuloOne_of_missed_Icc {s : ℕ → ℝ} {c d : ℝ} (hc0 : 0 ≤ c) (hcd : c < d) (hd1 : d ≤ 1) (hmiss : ∀ n : ℕ, Int.fract (s n) ∉ Set.Icc c d) : ¬ IsEquidistributedModuloOne s := by intro heq have hlim := heq c d hcd.le (Set.Icc_subset_Icc hc0 hd1) have hzero : (fun n : ℕ => (((Finset.range n).filter fun m => Int.fract (s m) ∈ Set.Icc c d).card : ℝ) / n) = fun _ => (0 : ℝ) := by ext n have hfilt : (Finset.range n).filter (fun m => Int.fract (s m) ∈ Set.Icc c d) = ∅ := by rw [Finset.filter_eq_empty_iff] intro m _ exact hmiss m rw [hfilt] simp rw [hzero] at hlim have hval : (0 : ℝ) = (d - c) / (1 - 0) := tendsto_nhds_unique tendsto_const_nhds hlim linarith /-- If `Int.fract (s n)` avoids a nonempty open interval `(x - r, x + r) ⊆ (0, 1)` for all `n`, then `s` is not uniformly distributed modulo `1`. -/ lemma not_equidistributedModuloOne_of_missed_Ioo {s : ℕ → ℝ} {x r : ℝ} (hr : 0 < r) (hsub : Set.Ioo (x - r) (x + r) ⊆ Set.Ioo (0 : ℝ) 1) (hmiss : ∀ n : ℕ, Int.fract (s n) ∉ Set.Ioo (x - r) (x + r)) : ¬ IsEquidistributedModuloOne s := by have hx1 : x - r / 2 ∈ Set.Ioo (x - r) (x + r) := ⟨by linarith, by linarith⟩ have hx2 : x + r / 2 ∈ Set.Ioo (x - r) (x + r) := ⟨by linarith, by linarith⟩ have h0 : 0 ≤ x - r / 2 := (hsub hx1).1.le have h1 : x + r / 2 ≤ 1 := (hsub hx2).2.le apply not_equidistributedModuloOne_of_missed_Icc h0 (by linarith) h1 intro n hmem exact hmiss n ⟨by linarith [hmem.1], by linarith [hmem.2]⟩ /-- Shifting the index of `s` by `1` preserves the missed-interval obstruction. -/ lemma not_equidistributedModuloOne_shift_of_missed_Ioo {s : ℕ → ℝ} {x r : ℝ} (hr : 0 < r) (hsub : Set.Ioo (x - r) (x + r) ⊆ Set.Ioo (0 : ℝ) 1) (hmiss : ∀ n : ℕ, Int.fract (s n) ∉ Set.Ioo (x - r) (x + r)) : ¬ IsEquidistributedModuloOne (fun n => s (n + 1)) := not_equidistributedModuloOne_of_missed_Ioo hr hsub (fun n => hmiss (n + 1)) /-! ### Elementary Finite Interval-Cover Gap Lemma (Zero Measure Theory!) -/ /-- Total length of a list of real intervals `(u, v)`. -/ def intervalListLen : List (ℝ × ℝ) → ℝ | [] => 0 | (u, v) :: rest => (v - u) + intervalListLen rest /-- Subtract a closed interval `[a, b]` from a single open interval `(u, v)`, returning 0, 1, or 2 open subintervals contained in `(u, v) \ [a, b]`. -/ def subtractIntervalOne (a b u v : ℝ) : List (ℝ × ℝ) := let leftPart := if u < min v a then [(u, min v a)] else [] let rightPart := if max u b < v then [(max u b, v)] else [] leftPart ++ rightPart /-- Subtract `[a, b]` from every interval in a list of open intervals. -/ def subtractIntervalList (a b : ℝ) : List (ℝ × ℝ) → List (ℝ × ℝ) | [] => [] | (u, v) :: rest => subtractIntervalOne a b u v ++ subtractIntervalList a b rest lemma intervalListLen_append (L₁ L₂ : List (ℝ × ℝ)) : intervalListLen (L₁ ++ L₂) = intervalListLen L₁ + intervalListLen L₂ := by induction L₁ with | nil => simp [intervalListLen] | cons p rest ih => rcases p with ⟨u, v⟩ simp [intervalListLen, ih, add_assoc] lemma subtractIntervalOne_valid {a b u v : ℝ} (hab : a ≤ b) (huv : u < v) : (∀ p ∈ subtractIntervalOne a b u v, p.1 < p.2 ∧ u ≤ p.1 ∧ p.2 ≤ v ∧ ∀ t, p.1 < t → t < p.2 → t ∉ Set.Icc a b) ∧ (v - u) - intervalListLen (subtractIntervalOne a b u v) ≤ max 0 (min v b - max u a) := by unfold subtractIntervalOne constructor · intro p hp rw [List.mem_append] at hp rcases hp with hL | hR · split_ifs at hL with h1 · rw [List.mem_singleton] at hL subst hL refine ⟨h1, le_rfl, min_le_left _ _, fun t ht1 ht2 hmem => ?_⟩ have : t < a := lt_of_lt_of_le ht2 (min_le_right _ _) linarith [hmem.1] · simp at hL · split_ifs at hR with h2 · rw [List.mem_singleton] at hR subst hR refine ⟨h2, le_max_left _ _, le_rfl, fun t ht1 ht2 hmem => ?_⟩ have : b < t := lt_of_le_of_lt (le_max_right _ _) ht1 linarith [hmem.2] · simp at hR · rw [intervalListLen_append] by_cases h1 : u < min v a <;> by_cases h2 : max u b < v <;> simp only [h1, h2, ↓reduceIte] · -- Both left `(u, min v a)` and right `(max u b, v)` survive => `u < a ≤ b < v` simp only [intervalListLen, add_zero] have hua : u < a := lt_of_lt_of_le h1 (min_le_right _ _) have hbv : b < v := lt_of_le_of_lt (le_max_right _ _) h2 rw [min_eq_right (le_of_lt (lt_of_le_of_lt hab hbv)), max_eq_right (le_of_lt (lt_of_lt_of_le hua hab)), min_eq_right (le_of_lt hbv), max_eq_right (le_of_lt hua)] have hba : 0 ≤ b - a := sub_nonneg.mpr hab rw [max_eq_right hba] linarith · -- Only left `(u, min v a)` survives => `v ≤ max u b`, hence `v ≤ b` simp only [intervalListLen, add_zero] push Not at h2 have hvb : v ≤ b := by rcases max_cases u b with ⟨h, _⟩ | ⟨h, _⟩ <;> linarith have hua : u < a := lt_of_lt_of_le h1 (min_le_right _ _) by_cases hva : v ≤ a · rw [min_eq_left hva] have : (0 : ℝ) ≤ max 0 (min v b - max u a) := le_max_left _ _ linarith · push Not at hva rw [min_eq_right hva.le, min_eq_left hvb, max_eq_right hua.le] have hpos : 0 ≤ v - a := sub_nonneg.mpr hva.le rw [max_eq_right hpos] linarith · -- Only right `(max u b, v)` survives => `min v a ≤ u`, hence `a ≤ u` simp only [intervalListLen, zero_add, add_zero] push Not at h1 have hau : a ≤ u := by rcases min_cases v a with ⟨h, _⟩ | ⟨h, _⟩ <;> linarith have hbv : b < v := lt_of_le_of_lt (le_max_right _ _) h2 by_cases hbu : b ≤ u · rw [max_eq_left hbu] have : (0 : ℝ) ≤ max 0 (min v b - max u a) := le_max_left _ _ linarith · push Not at hbu rw [max_eq_right hbu.le, min_eq_right hbv.le, max_eq_left hau] have hpos : 0 ≤ b - u := sub_nonneg.mpr hbu.le rw [max_eq_right hpos] linarith · -- Neither survives => `a ≤ u` and `v ≤ b`, so `[u, v] ⊆ [a, b]` simp only [intervalListLen, add_zero, sub_zero] push Not at h1 h2 have hau : a ≤ u := by rcases min_cases v a with ⟨h, _⟩ | ⟨h, _⟩ <;> linarith have hvb : v ≤ b := by rcases max_cases u b with ⟨h, _⟩ | ⟨h, _⟩ <;> linarith rw [min_eq_left hvb, max_eq_left hau, max_eq_right (sub_nonneg.mpr huv.le)] /-- A list of open intervals is pairwise ordered and disjoint from left to right. -/ def IsSortedDisjoint : List (ℝ × ℝ) → Prop | [] => True | (u, v) :: rest => u < v ∧ (∀ p ∈ rest, v ≤ p.1) ∧ IsSortedDisjoint rest lemma subtractIntervalOne_sorted {a b u v : ℝ} (hab : a ≤ b) : IsSortedDisjoint (subtractIntervalOne a b u v) := by unfold subtractIntervalOne by_cases h1 : u < min v a <;> by_cases h2 : max u b < v <;> simp only [h1, h2, ↓reduceIte, List.cons_append, List.nil_append] · refine ⟨h1, ?_, h2, by simp, trivial⟩ intro p hp rw [List.mem_singleton] at hp subst hp exact le_trans (min_le_right _ _) (le_trans hab (le_max_right _ _)) · exact ⟨h1, by simp, trivial⟩ · exact ⟨h2, by simp, trivial⟩ · trivial lemma isSortedDisjoint_append {L₁ L₂ : List (ℝ × ℝ)} (h₁ : IsSortedDisjoint L₁) (h₂ : IsSortedDisjoint L₂) (hsep : ∀ p ∈ L₁, ∀ q ∈ L₂, p.2 ≤ q.1) : IsSortedDisjoint (L₁ ++ L₂) := by induction L₁ with | nil => simpa using h₂ | cons p rest ih => rcases p with ⟨u, v⟩ rcases h₁ with ⟨huv, hrest, hsd⟩ refine ⟨huv, ?_, ih hsd (fun q hq r hr => hsep q (List.mem_cons_of_mem _ hq) r hr)⟩ intro q hq simp only [List.append_eq, List.mem_append] at hq rcases hq with hq | hq · exact hrest q hq · exact hsep (u, v) List.mem_cons_self q hq lemma subtractIntervalList_preserves {a b : ℝ} (hab : a ≤ b) (L : List (ℝ × ℝ)) (hL : IsSortedDisjoint L) : IsSortedDisjoint (subtractIntervalList a b L) ∧ (∀ p ∈ subtractIntervalList a b L, (∃ q ∈ L, q.1 ≤ p.1 ∧ p.2 ≤ q.2) ∧ ∀ t, p.1 < t → t < p.2 → t ∉ Set.Icc a b) := by induction L with | nil => simp [subtractIntervalList, IsSortedDisjoint] | cons q rest ih => rcases q with ⟨u, v⟩ rcases hL with ⟨huv, hsep, hsd⟩ rcases ih hsd with ⟨hsd', hmem'⟩ have hone := (subtractIntervalOne_valid hab huv).1 constructor · apply isSortedDisjoint_append (subtractIntervalOne_sorted hab) hsd' intro p hp r hr have hp2 : p.2 ≤ v := (hone p hp).2.2.1 rcases (hmem' r hr).1 with ⟨w, hw, hw1, _⟩ exact le_trans hp2 (le_trans (hsep w hw) hw1) · intro p hp rw [subtractIntervalList, List.mem_append] at hp rcases hp with h1 | h2 · refine ⟨⟨(u, v), List.mem_cons_self, (hone p h1).2.1, (hone p h1).2.2.1⟩, (hone p h1).2.2.2⟩ · rcases hmem' p h2 with ⟨⟨w, hw, hw1, hw2⟩, hmiss⟩ exact ⟨⟨w, List.mem_cons_of_mem _ hw, hw1, hw2⟩, hmiss⟩ /-- The sum of intersections `max 0 (min v b - max u a)` over a sorted disjoint list of intervals is bounded above by `b - a`. -/ lemma sum_inter_le_of_sortedDisjoint {a b : ℝ} (_hab : a ≤ b) (L : List (ℝ × ℝ)) (hL : IsSortedDisjoint L) : ∀ c : ℝ, a ≤ c → (∀ p ∈ L, c ≤ p.1) → (L.map (fun p => max 0 (min p.2 b - max p.1 a))).sum ≤ max 0 (b - c) := by induction L with | nil => intro c _ _ simp | cons q rest ih => rcases q with ⟨u, v⟩ rcases hL with ⟨huv, hsep, hsd⟩ intro c hac hcu have hcu' : c ≤ u := hcu (u, v) List.mem_cons_self have hau : a ≤ u := le_trans hac hcu' have hrest := ih hsd v (le_trans hau huv.le) hsep simp only [List.map_cons, List.sum_cons] have hterm : max 0 (min v b - max u a) = max 0 (min v b - u) := by rw [max_eq_left hau] rw [hterm] by_cases hvb : v ≤ b · rw [max_eq_right (sub_nonneg.mpr hvb)] at hrest rw [min_eq_left hvb, max_eq_right (sub_nonneg.mpr huv.le), max_eq_right (sub_nonneg.mpr (le_trans hcu' (le_trans huv.le hvb)))] linarith · push Not at hvb rw [min_eq_right hvb.le] have hbv0 : max 0 (b - v) = 0 := max_eq_left (by linarith) rw [hbv0] at hrest have h1 : max 0 (b - u) ≤ max 0 (b - c) := by apply max_le_max_left linarith linarith lemma intervalListLen_sub_subtractIntervalList_le {a b : ℝ} (hab : a ≤ b) (L : List (ℝ × ℝ)) (hL : IsSortedDisjoint L) : intervalListLen L - intervalListLen (subtractIntervalList a b L) ≤ b - a := by have haux : ∀ L' : List (ℝ × ℝ), IsSortedDisjoint L' → intervalListLen L' - intervalListLen (subtractIntervalList a b L') ≤ (L'.map (fun p => max 0 (min p.2 b - max p.1 a))).sum := by intro L' hL' induction L' with | nil => simp [intervalListLen, subtractIntervalList] | cons q rest ih => rcases q with ⟨u, v⟩ rcases hL' with ⟨huv, _, hsd⟩ simp only [intervalListLen, subtractIntervalList, intervalListLen_append, List.map_cons, List.sum_cons] have h1 := (subtractIntervalOne_valid hab huv).2 have h2 := ih hsd linarith have h2 : ∀ L' : List (ℝ × ℝ), IsSortedDisjoint L' → (L'.map (fun p => max 0 (min p.2 b - max p.1 a))).sum ≤ b - a := by intro L' hL' induction L' with | nil => simp [sub_nonneg.mpr hab] | cons q rest ih => rcases q with ⟨u, v⟩ rcases hL' with ⟨huv, hsep, hsd⟩ simp only [List.map_cons, List.sum_cons] by_cases hva : v ≤ a · have hzero : max 0 (min v b - max u a) = 0 := by apply max_eq_left have : min v b ≤ v := min_le_left _ _ have : a ≤ max u a := le_max_right _ _ linarith rw [hzero, zero_add] exact ih hsd · push Not at hva have hrest := sum_inter_le_of_sortedDisjoint hab rest hsd v hva.le hsep by_cases hvb : v ≤ b · rw [max_eq_right (sub_nonneg.mpr hvb)] at hrest rw [min_eq_left hvb] have h1' : max 0 (v - max u a) ≤ v - a := by apply max_le (by linarith) have : a ≤ max u a := le_max_right _ _ linarith linarith · push Not at hvb rw [max_eq_left (by linarith : b - v ≤ 0)] at hrest rw [min_eq_right hvb.le] have h1' : max 0 (b - max u a) ≤ b - a := by apply max_le (sub_nonneg.mpr hab) have : a ≤ max u a := le_max_right _ _ linarith linarith exact le_trans (haux L hL) (h2 L hL) /-- **Elementary Finite Interval-Cover Gap Lemma (Zero Measure Theory!)**: If a finite list of closed intervals `[a_i, b_i]` (with `a_i ≤ b_i`) has total length `∑ (b_i - a_i) < 1`, then there exists an open interval `(x - r, x + r) ⊆ (0, 1)` (`r > 0`) completely disjoint from every `[a_i, b_i]`. -/ theorem exists_missed_Ioo_of_cover_lt_one (C : List (ℝ × ℝ)) (hvalid : ∀ p ∈ C, p.1 ≤ p.2) (hlen : intervalListLen C < 1) : ∃ x r : ℝ, 0 < r ∧ Set.Ioo (x - r) (x + r) ⊆ Set.Ioo (0 : ℝ) 1 ∧ ∀ p ∈ C, ∀ t ∈ Set.Ioo (x - r) (x + r), t ∉ Set.Icc p.1 p.2 := by -- Iteratively subtract each interval in `C` from the initial gap list `[(0, 1)]`. have hmain : ∀ L : List (ℝ × ℝ), (∀ p ∈ L, p.1 ≤ p.2) → ∃ G : List (ℝ × ℝ), IsSortedDisjoint G ∧ 1 - intervalListLen L ≤ intervalListLen G ∧ (∀ g ∈ G, 0 ≤ g.1 ∧ g.2 ≤ 1 ∧ ∀ p ∈ L, ∀ t, g.1 < t → t < g.2 → t ∉ Set.Icc p.1 p.2) := by intro L hL induction L with | nil => refine ⟨[(0, 1)], ⟨by norm_num, by simp, trivial⟩, by simp [intervalListLen], ?_⟩ intro g hg rw [List.mem_singleton] at hg subst hg exact ⟨le_rfl, le_rfl, by simp⟩ | cons p rest ih => rcases p with ⟨a, b⟩ have hab : a ≤ b := hL (a, b) List.mem_cons_self rcases ih (fun q hq => hL q (List.mem_cons_of_mem _ hq)) with ⟨G, hGsd, hGlen, hGprop⟩ rcases subtractIntervalList_preserves hab G hGsd with ⟨hG'sd, hG'mem⟩ have hdiff := intervalListLen_sub_subtractIntervalList_le hab G hGsd refine ⟨subtractIntervalList a b G, hG'sd, ?_, ?_⟩ · simp only [intervalListLen] linarith · intro g hg rcases hG'mem g hg with ⟨⟨w, hw, hw1, hw2⟩, hmiss_ab⟩ rcases hGprop w hw with ⟨hw0, hw1', hmiss_rest⟩ refine ⟨le_trans hw0 hw1, le_trans hw2 hw1', ?_⟩ intro q hq t ht1 ht2 rw [List.mem_cons] at hq rcases hq with rfl | hq · exact hmiss_ab t ht1 ht2 · exact hmiss_rest q hq t (lt_of_le_of_lt hw1 ht1) (lt_of_lt_of_le ht2 hw2) rcases hmain C hvalid with ⟨G, hGsd, hGlen, hGprop⟩ have hGpos : 0 < intervalListLen G := by linarith have hGne : G ≠ [] := by intro h0; rw [h0] at hGpos; simp [intervalListLen] at hGpos rcases List.exists_cons_of_ne_nil hGne with ⟨⟨u, v⟩, rest, rfl⟩ have huv : u < v := hGsd.1 rcases hGprop (u, v) List.mem_cons_self with ⟨hu0, hv1, hmiss⟩ refine ⟨(u + v) / 2, (v - u) / 2, by linarith, ?_, ?_⟩ · intro t ht exact ⟨by linarith [ht.1, hu0], by linarith [ht.2, hv1]⟩ · intro p hp t ht exact hmiss p hp t (by linarith [ht.1]) (by linarith [ht.2]) /-- Wrapping an interval `[lo, hi]` (`lo ≤ hi`) modulo 1 into at most two intervals in `[0, 1]` of total length `≤ hi - lo`, covering `Int.fract t` for every `t ∈ [lo, hi]`. -/ def wrapInterval (lo hi : ℝ) : List (ℝ × ℝ) := let a := Int.fract lo let w := hi - lo if a + w < 1 then [(a, a + w)] else [(a, 1), (0, min 1 (a + w - 1))] lemma wrapInterval_valid {lo hi : ℝ} (h : lo ≤ hi) : (∀ p ∈ wrapInterval lo hi, p.1 ≤ p.2) ∧ intervalListLen (wrapInterval lo hi) ≤ hi - lo ∧ ∀ t : ℝ, lo ≤ t → t ≤ hi → ∃ p ∈ wrapInterval lo hi, Int.fract t ∈ Set.Icc p.1 p.2 := by unfold wrapInterval dsimp only set a := Int.fract lo set w := hi - lo have hw : 0 ≤ w := sub_nonneg.mpr h have ha0 : 0 ≤ a := Int.fract_nonneg lo have ha1 : a < 1 := Int.fract_lt_one lo have hfloor_lo : (⌊lo⌋ : ℝ) + a = lo := by dsimp [a]; rw [Int.fract]; ring split_ifs with h1 · refine ⟨?_, ?_, ?_⟩ · intro p hp; rw [List.mem_singleton] at hp; subst hp; linarith · simp [intervalListLen] · intro t hlt hth refine ⟨(a, a + w), List.mem_singleton_self _, ?_⟩ have hfl : ⌊t⌋ = ⌊lo⌋ := by rw [Int.floor_eq_iff] exact ⟨by linarith, by linarith⟩ have hft : Int.fract t = a + (t - lo) := by rw [Int.fract, hfl]; linarith rw [hft] exact ⟨by linarith, by linarith⟩ · push Not at h1 refine ⟨?_, ?_, ?_⟩ · intro p hp simp only [List.mem_cons, List.not_mem_nil, or_false] at hp rcases hp with rfl | rfl · exact ha1.le · exact le_min (by norm_num) (by linarith) · simp only [intervalListLen, add_zero] have hmin : min 1 (a + w - 1) ≤ a + w - 1 := min_le_right _ _ linarith · intro t hlt hth by_cases hlt1 : a + (t - lo) < 1 · refine ⟨(a, 1), List.mem_cons_self, ?_⟩ have hfl : ⌊t⌋ = ⌊lo⌋ := by rw [Int.floor_eq_iff] exact ⟨by linarith, by linarith⟩ have hft : Int.fract t = a + (t - lo) := by rw [Int.fract, hfl]; linarith rw [hft] exact ⟨by linarith, hlt1.le⟩ · push Not at hlt1 refine ⟨(0, min 1 (a + w - 1)), List.mem_cons_of_mem _ (List.mem_singleton_self _), ?_⟩ refine ⟨Int.fract_nonneg t, le_min (Int.fract_lt_one t).le ?_⟩ by_cases hlt2 : a + (t - lo) < 2 · have hfl : ⌊t⌋ = ⌊lo⌋ + 1 := by rw [Int.floor_eq_iff] push_cast exact ⟨by linarith, by linarith⟩ have hft : Int.fract t = a + (t - lo) - 1 := by rw [Int.fract, hfl]; push_cast; linarith rw [hft] linarith · push Not at hlt2 have : (1 : ℝ) ≤ a + w - 1 := by linarith exact le_trans (Int.fract_lt_one t).le this /-! ## Section 2: Newton's Identities & Conjugate Power Sums for Arbitrary-Degree Monic Polynomials -/ lemma map_int_complex_natDegree (P : ℤ[X]) : (P.map (algebraMap ℤ ℂ)).natDegree = P.natDegree := Polynomial.natDegree_map_eq_of_injective (f := algebraMap ℤ ℂ) Int.cast_injective P lemma multiset_norm_sum_le (s : Multiset ℂ) : ‖s.sum‖ ≤ (s.map norm).sum := by induction s using Multiset.induction_on with | empty => simp | cons w s ih => rw [Multiset.sum_cons, Multiset.map_cons, Multiset.sum_cons] exact le_trans (norm_add_le _ _) (add_le_add (le_refl _) ih) lemma multiset_map_powersetCard {α β : Type*} (f : α → β) (s : Multiset α) (j : ℕ) : (s.powersetCard j).map (Multiset.map f) = (s.map f).powersetCard j := by induction s using Multiset.induction_on generalizing j with | empty => cases j with | zero => simp | succ n => have h0α : Multiset.powersetCard (n + 1) (0 : Multiset α) = 0 := Multiset.card_eq_zero.mp (by rw [Multiset.card_powersetCard, Multiset.card_zero, Nat.choose_eq_zero_of_lt (by omega)]) have h0β : Multiset.powersetCard (n + 1) (0 : Multiset β) = 0 := Multiset.card_eq_zero.mp (by rw [Multiset.card_powersetCard, Multiset.card_zero, Nat.choose_eq_zero_of_lt (by omega)]) rw [Multiset.map_zero, h0α, h0β, Multiset.map_zero] | cons a s ih => cases j with | zero => simp | succ j => simp only [Multiset.map_cons, Multiset.powersetCard_cons, Multiset.map_add, ih] congr 1 rw [← ih j, Multiset.map_map, Multiset.map_map] apply Multiset.map_congr rfl intro t _ simp /-- Evaluating `MvPolynomial.esymm (Fin d) ℂ j` at the list of roots of a monic `P : ℤ[X]` gives an integer `(-1)^j * P.coeff (d - j)` for `j ≤ d`, and `0` for `j > d`. -/ lemma multiset_roots_esymm_int {P : ℤ[X]} (hP : P.Monic) (j : ℕ) : let Pc : ℂ[X] := P.map (algebraMap ℤ ℂ) Pc.roots.esymm j = if j ≤ P.natDegree then ((-1 : ℤ) ^ j * P.coeff (P.natDegree - j) : ℂ) else 0 := by intro Pc have hPc_monic : Pc.Monic := hP.map _ have hdeg : Pc.natDegree = P.natDegree := map_int_complex_natDegree P have hsp : Pc.Splits := IsAlgClosed.splits Pc have hcard : Pc.roots.card = P.natDegree := by rw [← hdeg] exact (Polynomial.Splits.natDegree_eq_card_roots hsp).symm split_ifs with hj · have hvieta := Polynomial.coeff_eq_esymm_roots_of_splits hsp (k := P.natDegree - j) (by rw [hdeg]; exact Nat.sub_le _ _) rw [hPc_monic.leadingCoeff, one_mul, hdeg, Nat.sub_sub_self hj] at hvieta have hcoeff : Pc.coeff (P.natDegree - j) = (P.coeff (P.natDegree - j) : ℂ) := by simp [Pc] rw [hcoeff] at hvieta have hsign : ((-1 : ℂ) ^ j) * ((-1 : ℂ) ^ j) = 1 := by rw [← mul_pow]; norm_num have := congrArg (((-1 : ℂ) ^ j) * ·) hvieta rw [← mul_assoc, hsign, one_mul] at this push_cast exact this.symm · push Not at hj rw [Multiset.esymm] have hpow : Multiset.powersetCard j Pc.roots = 0 := Multiset.card_eq_zero.mp (by rw [Multiset.card_powersetCard, Nat.choose_eq_zero_of_lt (by omega)]) simp [hpow] /-- Converting a multiset of cardinality `d` into a function `Fin d → ℂ` preserves both `esymm` and power sums. -/ lemma multiset_to_fin_esymm_psum (R : Multiset ℂ) : ∃ r : Fin R.card → ℂ, (∀ j : ℕ, MvPolynomial.eval r (MvPolynomial.esymm (Fin R.card) ℂ j) = R.esymm j) ∧ (∀ k : ℕ, MvPolynomial.eval r (MvPolynomial.psum (Fin R.card) ℂ k) = (R.map (· ^ k)).sum) := by let L := R.toList have hlen : L.length = R.card := Multiset.length_toList R let r : Fin R.card → ℂ := fun i => L.get (i.cast hlen.symm) have hR_eq : (Finset.univ.val.map r) = R := by have h1 : (Finset.univ.val.map r) = (L : Multiset ℂ) := by have hlist : (List.finRange R.card).map r = L := by apply List.ext_getElem · simp [hlen] · intro i h1 h2 simp [r, List.getElem_map, List.getElem_finRange] have hcoe : ((List.finRange R.card : List (Fin R.card)) : Multiset (Fin R.card)) = Finset.univ.val := by apply Multiset.ext.mpr intro x rw [Multiset.coe_count, List.count_finRange, Multiset.count_eq_one_of_mem Finset.univ.nodup (Finset.mem_univ x)] rw [← hcoe, Multiset.map_coe, hlist] rw [h1, Multiset.coe_toList] refine ⟨r, ?_, ?_⟩ · intro j rw [MvPolynomial.esymm_eq_multiset_esymm, Multiset.esymm, Multiset.esymm, map_multiset_sum, Multiset.map_map] conv_rhs => rw [← hR_eq] have hmap : Finset.univ.val.map r = (Finset.univ.val.map MvPolynomial.X).map (MvPolynomial.eval r) := by rw [Multiset.map_map] apply Multiset.map_congr rfl intro i _ simp conv_rhs => rw [hmap, ← multiset_map_powersetCard, Multiset.map_map] congr 1 apply Multiset.map_congr rfl intro t _ simp [map_multiset_prod] · intro k rw [MvPolynomial.psum, map_sum] simp only [map_pow, MvPolynomial.eval_X] rw [Finset.sum_eq_multiset_sum] conv_rhs => rw [← hR_eq, Multiset.map_map] rfl /-- **Integer Power-Sum Theorem (via Newton's Identities):** For every monic `P : ℤ[X]` and every `k : ℕ`, the `k`-th power sum of the complex roots of `P` is an integer! -/ theorem monic_root_power_sum_is_int {P : ℤ[X]} (hP : P.Monic) (k : ℕ) : ∃ t : ℤ, (t : ℂ) = ((P.map (algebraMap ℤ ℂ)).roots.map (· ^ k)).sum := by set Pc : ℂ[X] := P.map (algebraMap ℤ ℂ) have hdeg : Pc.natDegree = P.natDegree := map_int_complex_natDegree P have hcard : Pc.roots.card = P.natDegree := by rw [← hdeg] exact (Polynomial.Splits.natDegree_eq_card_roots (IsAlgClosed.splits Pc)).symm rcases multiset_to_fin_esymm_psum Pc.roots with ⟨r, hesymm, hpsum⟩ have hmain : ∀ m : ℕ, ∃ t : ℤ, (t : ℂ) = MvPolynomial.eval r (MvPolynomial.psum (Fin Pc.roots.card) ℂ m) := by intro m induction m using Nat.strong_induction_on with | h m ih => rcases m with _ | m · refine ⟨Pc.roots.card, ?_⟩ rw [hpsum 0] simp · have hnewt := congrArg (MvPolynomial.eval r) (MvPolynomial.psum_eq_mul_esymm_sub_sum (Fin Pc.roots.card) ℂ (m + 1) (Nat.succ_pos m)) simp only [map_sub, map_mul, map_pow, map_neg, map_one, map_natCast, map_sum] at hnewt have he_int : ∀ j : ℕ, ∃ e : ℤ, (e : ℂ) = MvPolynomial.eval r (MvPolynomial.esymm (Fin Pc.roots.card) ℂ j) := by intro j rw [hesymm j, multiset_roots_esymm_int hP j] split_ifs with hj · exact ⟨(-1 : ℤ) ^ j * P.coeff (P.natDegree - j), by push_cast; rfl⟩ · exact ⟨0, by simp⟩ rcases he_int (m + 1) with ⟨e_top, he_top⟩ have hsum_int : ∃ s : ℤ, (s : ℂ) = ∑ a ∈ (Finset.antidiagonal (m + 1)).filter (fun a => a.1 ∈ Set.Ioo 0 (m + 1)), (-1 : ℂ) ^ a.1 * MvPolynomial.eval r (MvPolynomial.esymm (Fin Pc.roots.card) ℂ a.1) * MvPolynomial.eval r (MvPolynomial.psum (Fin Pc.roots.card) ℂ a.2) := by have hterm : ∀ a ∈ (Finset.antidiagonal (m + 1)).filter (fun a => a.1 ∈ Set.Ioo 0 (m + 1)), ∃ z : ℤ, (z : ℂ) = (-1 : ℂ) ^ a.1 * MvPolynomial.eval r (MvPolynomial.esymm (Fin Pc.roots.card) ℂ a.1) * MvPolynomial.eval r (MvPolynomial.psum (Fin Pc.roots.card) ℂ a.2) := by intro a ha rw [Finset.mem_filter, Finset.mem_antidiagonal] at ha have ha2_lt : a.2 < m + 1 := by have h0 : 0 < a.1 := ha.2.1 omega rcases he_int a.1 with ⟨ea, hea⟩ rcases ih a.2 ha2_lt with ⟨pa, hpa⟩ refine ⟨(-1 : ℤ) ^ a.1 * ea * pa, ?_⟩ rw [← hea, ← hpa] push_cast; rfl choose f hf using hterm refine ⟨∑ a ∈ ((Finset.antidiagonal (m + 1)).filter (fun a => a.1 ∈ Set.Ioo 0 (m + 1))).attach, f a.1 a.2, ?_⟩ rw [Int.cast_sum] rw [← Finset.sum_attach ((Finset.antidiagonal (m + 1)).filter (fun a => a.1 ∈ Set.Ioo 0 (m + 1)))] apply Finset.sum_congr rfl intro a _ exact hf a.1 a.2 rcases hsum_int with ⟨s_int, hs_int⟩ refine ⟨(-1 : ℤ) ^ (m + 1 + 1) * ((m + 1 : ℕ) : ℤ) * e_top - s_int, ?_⟩ rw [hnewt, ← he_top, ← hs_int] push_cast; rfl rcases hmain k with ⟨t, ht⟩ exact ⟨t, ht.trans (hpsum k)⟩ /-- Exact small power sums for the sparse trinomial `P(X) = X^d - C a * X^(d-1) + C b`: for `1 ≤ k ≤ d - 1`, the `k`-th power sum of all complex roots is **exactly** `a^k`! -/ theorem trinomial_root_power_sum_small {d : ℕ} (hd : 2 ≤ d) (a b : ℤ) {k : ℕ} (hk1 : 1 ≤ k) (hk2 : k ≤ d - 1) : let P : ℤ[X] := X ^ d - C a * X ^ (d - 1) + C b ((P.map (algebraMap ℤ ℂ)).roots.map (· ^ k)).sum = (a : ℂ) ^ k := by intro P have hP_deg : P.natDegree = d := by have h1 : (X ^ d : ℤ[X]).natDegree = d := natDegree_X_pow d have h2 : (-C a * X ^ (d - 1) + C b : ℤ[X]).natDegree < d := by have h2a : (-C a * X ^ (d - 1) : ℤ[X]).natDegree ≤ d - 1 := by calc (-C a * X ^ (d - 1) : ℤ[X]).natDegree ≤ (-C a : ℤ[X]).natDegree + (X ^ (d - 1) : ℤ[X]).natDegree := natDegree_mul_le _ ≤ 0 + (d - 1) := by simp _ = d - 1 := by omega have h2b : (C b : ℤ[X]).natDegree = 0 := natDegree_C b calc (-C a * X ^ (d - 1) + C b : ℤ[X]).natDegree ≤ max (-C a * X ^ (d - 1) : ℤ[X]).natDegree (C b : ℤ[X]).natDegree := natDegree_add_le _ _ _ ≤ d - 1 := max_le h2a (by omega) _ < d := by omega have hP_eq : P = X ^ d + (-C a * X ^ (d - 1) + C b) := by ring rw [hP_eq, natDegree_add_eq_left_of_natDegree_lt (by omega), h1] have hP_monic : P.Monic := by rw [Polynomial.Monic.def, Polynomial.leadingCoeff, hP_deg] simp only [P, coeff_add, coeff_sub, coeff_X_pow, coeff_C_mul_X_pow, coeff_C] have hne1 : d ≠ d - 1 := by omega have hne0 : d ≠ 0 := by omega simp [hne1, hne0] set Pc : ℂ[X] := P.map (algebraMap ℤ ℂ) rcases multiset_to_fin_esymm_psum Pc.roots with ⟨r, hesymm, hpsum⟩ have he1 : MvPolynomial.eval r (MvPolynomial.esymm (Fin Pc.roots.card) ℂ 1) = (a : ℂ) := by rw [hesymm 1, multiset_roots_esymm_int hP_monic 1] have h1d : 1 ≤ P.natDegree := by omega rw [if_pos h1d, hP_deg] have hcoeff : P.coeff (d - 1) = -a := by simp only [P, coeff_add, coeff_sub, coeff_X_pow, coeff_C_mul_X_pow, coeff_C] have hne1 : d - 1 ≠ d := by omega have hne0 : d - 1 ≠ 0 := by omega simp [hne1, hne0] rw [hcoeff] push_cast; ring have he_zero : ∀ j : ℕ, 2 ≤ j → j ≤ d - 1 → MvPolynomial.eval r (MvPolynomial.esymm (Fin Pc.roots.card) ℂ j) = 0 := by intro j hj2 hjd rw [hesymm j, multiset_roots_esymm_int hP_monic j] have hjd' : j ≤ P.natDegree := by omega rw [if_pos hjd', hP_deg] have hcoeff : P.coeff (d - j) = 0 := by simp only [P, coeff_add, coeff_sub, coeff_X_pow, coeff_C_mul_X_pow, coeff_C] have hne1 : d - j ≠ d := by omega have hne2 : d - j ≠ d - 1 := by omega have hne0 : d - j ≠ 0 := by omega simp [hne1, hne2, hne0] rw [hcoeff] simp have hind : ∀ m : ℕ, 1 ≤ m → m ≤ d - 1 → MvPolynomial.eval r (MvPolynomial.psum (Fin Pc.roots.card) ℂ m) = (a : ℂ) ^ m := by intro m hm1 hmd induction m with | zero => omega | succ m ih => rcases m with _ | m · have hnewt := congrArg (MvPolynomial.eval r) (MvPolynomial.psum_eq_mul_esymm_sub_sum (Fin Pc.roots.card) ℂ 1 (by decide)) simp only [map_sub, map_mul, map_pow, map_neg, map_one, map_natCast, map_sum] at hnewt have hempty : (Finset.antidiagonal 1).filter (fun p => p.1 ∈ Set.Ioo 0 1) = ∅ := by ext p; simp [Finset.mem_antidiagonal]; omega rw [hempty, Finset.sum_empty, sub_zero, he1] at hnewt simpa using hnewt · have hnewt := congrArg (MvPolynomial.eval r) (MvPolynomial.psum_eq_mul_esymm_sub_sum (Fin Pc.roots.card) ℂ (m + 2) (by omega)) simp only [map_sub, map_mul, map_pow, map_neg, map_one, map_natCast, map_sum] at hnewt rw [he_zero (m + 2) (by omega) hmd, mul_zero, zero_sub] at hnewt have hsum : ∑ p ∈ (Finset.antidiagonal (m + 2)).filter (fun p => p.1 ∈ Set.Ioo 0 (m + 2)), (-1 : ℂ) ^ p.1 * MvPolynomial.eval r (MvPolynomial.esymm (Fin Pc.roots.card) ℂ p.1) * MvPolynomial.eval r (MvPolynomial.psum (Fin Pc.roots.card) ℂ p.2) = (-1 : ℂ) ^ 1 * (a : ℂ) * MvPolynomial.eval r (MvPolynomial.psum (Fin Pc.roots.card) ℂ (m + 1)) := by rw [Finset.sum_eq_single (1, m + 1)] · rw [he1] · intro p hp hpne rw [Finset.mem_filter, Finset.mem_antidiagonal] at hp have hp1_ge2 : 2 ≤ p.1 := by by_contra hlt have hp1_eq : p.1 = 1 := by have := hp.2.1; omega have hp2_eq : p.2 = m + 1 := by omega exact hpne (Prod.ext hp1_eq hp2_eq) have hp1_le : p.1 ≤ d - 1 := by have := hp.2.2; omega rw [he_zero p.1 hp1_ge2 hp1_le, mul_zero, zero_mul] · intro hnot exfalso; apply hnot rw [Finset.mem_filter, Finset.mem_antidiagonal] exact ⟨by omega, by omega, by omega⟩ rw [hsum, ih (by omega) (by omega)] at hnewt rw [hnewt] ring rw [← hpsum k] exact hind k hk1 hk2 /-- Splitting off the real root `α` from the complex root multiset of a monic `P : ℤ[X]`: if `aeval α P = 0`, then `(P.map (algebraMap ℤ ℂ)).roots = (α : ℂ) ::ₘ S` where `S = (P.map (algebraMap ℤ ℂ)).roots.erase (α : ℂ)`. -/ def conjugateRoots (P : ℤ[X]) (α : ℝ) : Multiset ℂ := (P.map (algebraMap ℤ ℂ)).roots.erase (α : ℂ) lemma roots_eq_cons_conjugateRoots {P : ℤ[X]} (hP : P.Monic) {α : ℝ} (hα : Polynomial.aeval α P = 0) : (P.map (algebraMap ℤ ℂ)).roots = (α : ℂ) ::ₘ conjugateRoots P α := by have hmem : (α : ℂ) ∈ (P.map (algebraMap ℤ ℂ)).roots := by rw [Polynomial.mem_roots (hP.map (algebraMap ℤ ℂ)).ne_zero] rw [Polynomial.IsRoot.def] have hcomp : Polynomial.eval (α : ℂ) (P.map (algebraMap ℤ ℂ)) = ((Polynomial.aeval α P : ℝ) : ℂ) := by rw [Polynomial.aeval_def, ← Polynomial.eval₂_eq_eval_map] have hhom := (Polynomial.hom_eval₂ P (algebraMap ℤ ℝ) (algebraMap ℝ ℂ) α).symm have hring : (algebraMap ℝ ℂ).comp (algebraMap ℤ ℝ) = algebraMap ℤ ℂ := Subsingleton.elim _ _ rw [hring] at hhom exact hhom rw [hcomp, hα, Complex.ofReal_zero] exact (Multiset.cons_erase hmem).symm /-- The `m`-th conjugate power sum `s_m = Re(∑_{z ∈ S} z^m)` is actually EQUAL (as a complex number) to `(S.map (· ^ m)).sum`, and `α^m + s_m` is an integer! -/ def conjPowerSum (P : ℤ[X]) (α : ℝ) (m : ℕ) : ℝ := (((conjugateRoots P α).map (· ^ m)).sum).re lemma alpha_pow_add_conjPowerSum_is_int {P : ℤ[X]} (hP : P.Monic) {α : ℝ} (hα : Polynomial.aeval α P = 0) (m : ℕ) : ∃ t : ℤ, (t : ℝ) = α ^ m + conjPowerSum P α m := by rcases monic_root_power_sum_is_int hP m with ⟨t, ht⟩ rw [roots_eq_cons_conjugateRoots hP hα, Multiset.map_cons, Multiset.sum_cons] at ht refine ⟨t, ?_⟩ have hre := congrArg Complex.re ht simp only [Complex.intCast_re, Complex.add_re, ← Complex.ofReal_pow, Complex.ofReal_re] at hre exact hre /-- Every `z ∈ conjugateRoots P α` satisfies `‖z‖ ≤ ρ`, so `|conjPowerSum P α m| ≤ (d - 1) * ρ^m`. -/ lemma abs_conjPowerSum_le {P : ℤ[X]} (hP : P.Monic) {α ρ : ℝ} (hα : Polynomial.aeval α P = 0) (_hρ0 : 0 ≤ ρ) (hconj : ∀ z ∈ conjugateRoots P α, ‖z‖ ≤ ρ) (m : ℕ) : |conjPowerSum P α m| ≤ ((P.natDegree - 1 : ℕ) : ℝ) * ρ ^ m := by have hcard : (conjugateRoots P α).card = P.natDegree - 1 := by have hroots := roots_eq_cons_conjugateRoots hP hα have htot : (P.map (algebraMap ℤ ℂ)).roots.card = P.natDegree := by have hdeg := map_int_complex_natDegree P rw [← hdeg] exact (Polynomial.Splits.natDegree_eq_card_roots (IsAlgClosed.splits _)).symm rw [hroots, Multiset.card_cons] at htot omega have hre : |conjPowerSum P α m| ≤ ‖((conjugateRoots P α).map (· ^ m)).sum‖ := Complex.abs_re_le_norm _ have htri : ‖((conjugateRoots P α).map (· ^ m)).sum‖ ≤ (((conjugateRoots P α).map (· ^ m)).map norm).sum := multiset_norm_sum_le _ have hbound : (((conjugateRoots P α).map (· ^ m)).map norm).sum ≤ ((conjugateRoots P α).card : ℝ) * ρ ^ m := by rw [Multiset.map_map] have h1 : ∀ x ∈ (conjugateRoots P α).map (fun z => ‖z ^ m‖), x ≤ ρ ^ m := by intro x hx rcases Multiset.mem_map.mp hx with ⟨z, hz, rfl⟩ rw [norm_pow] exact pow_le_pow_left₀ (norm_nonneg z) (hconj z hz) m have h2 := Multiset.sum_le_card_nsmul _ (ρ ^ m) h1 simpa [nsmul_eq_mul] using h2 rw [hcard] at hbound exact le_trans hre (le_trans htri hbound) /-- Summability of `|conjPowerSum P α m|` when all conjugates lie in `‖z‖ ≤ ρ < 1`. -/ lemma summable_abs_conjPowerSum {P : ℤ[X]} (hP : P.Monic) {α ρ : ℝ} (hα : Polynomial.aeval α P = 0) (hρ0 : 0 ≤ ρ) (hρ1 : ρ < 1) (hconj : ∀ z ∈ conjugateRoots P α, ‖z‖ ≤ ρ) : Summable (fun m : ℕ => |conjPowerSum P α m|) := by have hgeom : Summable (fun m : ℕ => ((P.natDegree - 1 : ℕ) : ℝ) * ρ ^ m) := (summable_geometric_of_lt_one hρ0 hρ1).mul_left _ exact Summable.of_nonneg_of_le (fun _ => abs_nonneg _) (abs_conjPowerSum_le hP hα hρ0 hconj) hgeom /-! ## Section 3: Pisot Cantor Set & Orbit Decomposition Modulo 1 -/ lemma summable_cantor_term {α : ℝ} (hα : 1 < α) (ε : ℕ → Bool) : Summable (fun k : ℕ => (if ε k then (1 : ℝ) else 0) * α⁻¹ ^ (k + 1)) := by have hinv0 : 0 ≤ α⁻¹ := by positivity have hinv1 : α⁻¹ < 1 := inv_lt_one_of_one_lt₀ hα have hgeom : Summable (fun k : ℕ => α⁻¹ * α⁻¹ ^ k) := (summable_geometric_of_lt_one hinv0 hinv1).mul_left _ refine Summable.of_nonneg_of_le (fun k => by split_ifs <;> positivity) (fun k => ?_) hgeom rw [pow_succ'] split_ifs · simp · simp; positivity lemma cantorPoint_nonneg {α : ℝ} (hα : 1 < α) (ε : ℕ → Bool) : 0 ≤ cantorPoint α ε := by unfold cantorPoint apply mul_nonneg (by linarith) apply tsum_nonneg intro k split_ifs <;> positivity lemma cantorPoint_le_one {α : ℝ} (hα : 1 < α) (ε : ℕ → Bool) : cantorPoint α ε ≤ 1 := by unfold cantorPoint have hinv0 : 0 ≤ α⁻¹ := by positivity have hinv1 : α⁻¹ < 1 := inv_lt_one_of_one_lt₀ hα have hsum_le : (∑' k : ℕ, (if ε k then (1 : ℝ) else 0) * α⁻¹ ^ (k + 1)) ≤ ∑' k : ℕ, α⁻¹ * α⁻¹ ^ k := by apply Summable.tsum_le_tsum _ (summable_cantor_term hα ε) ((summable_geometric_of_lt_one hinv0 hinv1).mul_left _) intro k rw [pow_succ'] split_ifs · simp · simp; positivity have hgeom : (∑' k : ℕ, α⁻¹ * α⁻¹ ^ k) = (α - 1)⁻¹ := by rw [tsum_mul_left, tsum_geometric_of_lt_one hinv0 hinv1] have hα0 : α ≠ 0 := by linarith have hα1 : α - 1 ≠ 0 := by linarith field_simp calc (α - 1) * ∑' k : ℕ, (if ε k then (1 : ℝ) else 0) * α⁻¹ ^ (k + 1) ≤ (α - 1) * (α - 1)⁻¹ := mul_le_mul_of_nonneg_left (hgeom ▸ hsum_le) (by linarith) _ = 1 := mul_inv_cancel₀ (by linarith) /-- Every point of `C(α)` satisfies the middle-gap property: either `0 ≤ cantorPoint α ε ≤ 1 / α` (when `ε 0 = false`), or `1 - 1 / α ≤ cantorPoint α ε ≤ 1` (when `ε 0 = true`). -/ lemma cantorPoint_split_step {α : ℝ} (hα : 1 < α) (ε : ℕ → Bool) : cantorPoint α ε = (if ε 0 then (1 - α⁻¹) else 0) + α⁻¹ * cantorPoint α (fun k => ε (k + 1)) := by unfold cantorPoint have hs := summable_cantor_term hα ε rw [hs.tsum_eq_zero_add] have htail : (∑' k : ℕ, (if ε (k + 1) then (1 : ℝ) else 0) * α⁻¹ ^ (k + 1 + 1)) = α⁻¹ * ∑' k : ℕ, (if ε (k + 1) then (1 : ℝ) else 0) * α⁻¹ ^ (k + 1) := by rw [← tsum_mul_left] congr 1; ext k rw [pow_succ']; ring rw [htail, mul_add] have hα0 : α ≠ 0 := by linarith have hfirst : (α - 1) * ((if ε 0 then (1 : ℝ) else 0) * α⁻¹ ^ (0 + 1)) = if ε 0 then (1 - α⁻¹) else 0 := by cases ε 0 · simp · simp only [↓reduceIte, one_mul, zero_add, pow_one] field_simp rw [hfirst] ring /-- Exact middle-gap localization of `C(α)`: every `t ∈ C(α)` lies within `1 / α` of `0` or `1`! -/ lemma cantorPoint_near_int {α : ℝ} (hα : 1 < α) (ε : ℕ → Bool) : ∃ z : ℤ, |cantorPoint α ε - (z : ℝ)| ≤ α⁻¹ := by rw [cantorPoint_split_step hα ε] have h0 := cantorPoint_nonneg hα (fun k => ε (k + 1)) have h1 := cantorPoint_le_one hα (fun k => ε (k + 1)) have hinv0 : 0 ≤ α⁻¹ := by positivity cases h : ε 0 · refine ⟨0, ?_⟩ simp only [Bool.false_eq_true, ↓reduceIte, zero_add, Int.cast_zero, sub_zero] rw [abs_of_nonneg (mul_nonneg hinv0 h0)] nlinarith · refine ⟨1, ?_⟩ simp only [↓reduceIte, Int.cast_one] have hle : (1 - α⁻¹ + α⁻¹ * cantorPoint α (fun k => ε (k + 1))) - 1 = -(α⁻¹ * (1 - cantorPoint α (fun k => ε (k + 1)))) := by ring rw [hle, abs_neg, abs_of_nonneg (mul_nonneg hinv0 (by linarith))] nlinarith /-- Finite-prefix expansion of `cantorPoint α ε` to depth `K`: `cantorPoint α ε = prefix_K + α⁻¹ ^ K * tail_K`, with `0 ≤ tail_K ≤ 1`. -/ lemma cantorPoint_prefix_tail {α : ℝ} (hα : 1 < α) (ε : ℕ → Bool) (K : ℕ) : cantorPoint α ε = (α - 1) * (∑ k ∈ Finset.range K, (if ε k then (1 : ℝ) else 0) * α⁻¹ ^ (k + 1)) + α⁻¹ ^ K * cantorPoint α (fun k => ε (k + K)) := by induction K generalizing ε with | zero => simp | succ K ih => rw [cantorPoint_split_step hα ε, ih (fun k => ε (k + 1))] rw [Finset.sum_range_succ'] have hα0 : α ≠ 0 := by linarith have hfirst : (α - 1) * ((if ε 0 then (1 : ℝ) else 0) * α⁻¹ ^ (0 + 1)) = if ε 0 then (1 - α⁻¹) else 0 := by cases ε 0 · simp · simp only [↓reduceIte, one_mul, zero_add, pow_one]; field_simp have hsum : (∑ k ∈ Finset.range K, (if ε (k + 1) then (1 : ℝ) else 0) * α⁻¹ ^ (k + 1 + 1)) = α⁻¹ * ∑ k ∈ Finset.range K, (if ε (k + 1) then (1 : ℝ) else 0) * α⁻¹ ^ (k + 1) := by rw [Finset.mul_sum] apply Finset.sum_congr rfl intro k _; rw [pow_succ']; ring rw [hsum, mul_add, mul_add, hfirst] have hshift : (fun k => ε (k + K + 1)) = (fun k => ε (k + (K + 1))) := by ext k; congr 1 rw [hshift, pow_succ'] ring /-- **Exact Pisot Cantor Orbit Split**: For every `α > 1`, `ε : ℕ → Bool`, and `n : ℕ`, `cantorPoint α ε * α ^ n = (α - 1) * ∑_{m=0}^{n-1} 1_{ε(n-1-m)} α^m + cantorPoint α (shift^n ε)`. -/ lemma cantorPoint_mul_pow_split {α : ℝ} (hα : 1 < α) (ε : ℕ → Bool) (n : ℕ) : cantorPoint α ε * α ^ n = (∑ m ∈ Finset.range n, (if ε (n - 1 - m) then (1 : ℝ) else 0) * (α ^ m * (α - 1))) + cantorPoint α (fun k => ε (k + n)) := by have hα0 : α ≠ 0 := by linarith rw [cantorPoint_prefix_tail hα ε n, add_mul, mul_assoc (α⁻¹ ^ n), mul_comm (cantorPoint _ _), ← mul_assoc (α⁻¹ ^ n), ← mul_pow, inv_mul_cancel₀ hα0, one_pow, one_mul] congr 1 rw [mul_comm, ← mul_assoc, Finset.mul_sum] conv_lhs => rw [← Finset.sum_range_reflect] apply Finset.sum_congr rfl intro m hm have hm_lt : m < n := Finset.mem_range.mp hm have hsub : n - 1 - m + 1 = n - m := by omega have hexp : α ^ n * α⁻¹ ^ (n - m) = α ^ m := by rw [inv_pow, mul_inv_eq_iff_eq_mul₀ (pow_ne_zero _ hα0), ← pow_add, Nat.add_sub_of_le hm_lt.le] rw [hsub] calc α ^ n * (α - 1) * ((if ε (n - 1 - m) then (1 : ℝ) else 0) * α⁻¹ ^ (n - m)) = (if ε (n - 1 - m) then (1 : ℝ) else 0) * ((α ^ n * α⁻¹ ^ (n - m)) * (α - 1)) := by ring _ = (if ε (n - 1 - m) then (1 : ℝ) else 0) * (α ^ m * (α - 1)) := by rw [hexp] /-- Reduced mod-1 conjugate shift weights for a monic `P : ℤ[X]` with root `α`: `w̃_0 = -s_1` and `w̃_m = s_m - s_{m+1}` for `m ≥ 1`. -/ def reducedShiftWeight (P : ℤ[X]) (α : ℝ) : ℕ → ℝ | 0 => -conjPowerSum P α 1 | m + 1 => conjPowerSum P α (m + 1) - conjPowerSum P α (m + 2) /-- For every `m : ℕ`, `α ^ m * (α - 1)` is congruent modulo `ℤ` to `reducedShiftWeight P α m`! -/ lemma alpha_pow_mul_sub_one_mod_int {P : ℤ[X]} (hP : P.Monic) {α : ℝ} (hα : Polynomial.aeval α P = 0) (m : ℕ) : ∃ z : ℤ, α ^ m * (α - 1) = (z : ℝ) + reducedShiftWeight P α m := by rcases m with _ | m · rcases alpha_pow_add_conjPowerSum_is_int hP hα 1 with ⟨t1, ht1⟩ refine ⟨t1 - 1, ?_⟩ simp only [pow_zero, one_mul, reducedShiftWeight, Int.cast_sub, Int.cast_one] have : (t1 : ℝ) = α + conjPowerSum P α 1 := by simpa using ht1 linarith · rcases alpha_pow_add_conjPowerSum_is_int hP hα (m + 1) with ⟨t1, ht1⟩ rcases alpha_pow_add_conjPowerSum_is_int hP hα (m + 2) with ⟨t2, ht2⟩ refine ⟨t2 - t1, ?_⟩ simp only [reducedShiftWeight, Int.cast_sub] have hpow : α ^ (m + 1) * (α - 1) = α ^ (m + 2) - α ^ (m + 1) := by rw [pow_succ]; ring linarith /-! ## Section 4: Pillar 1 — Master Arbitrary-Degree Reduced Conjugate Width Theorem -/ /-- Pure real-arithmetic core of Pillar 1: an integer shift plus a remainder in `[-Lneg - α⁻¹, Lpos + α⁻¹]` with `2/α + Lpos + Lneg < 1` never lands in `(Lpos + α⁻¹, 1 - Lneg - α⁻¹)`. -/ private lemma fract_not_mem_Ioo_of_int_add_bounds {Z : ℤ} {S_rem Lpos Lneg α : ℝ} (hLpos0 : 0 ≤ Lpos) (hLneg0 : 0 ≤ Lneg) (hα_pos : 0 < α) (hsum : 2 / α + (Lpos + Lneg) < 1) (hlo_le : -Lneg - α⁻¹ ≤ S_rem) (hhi_le : S_rem ≤ Lpos + α⁻¹) : Int.fract ((Z : ℝ) + S_rem) ∉ Set.Ioo (Lpos + α⁻¹) (1 - Lneg - α⁻¹) := by intro hmem rw [add_comm (Z : ℝ) S_rem, Int.fract_add_intCast] at hmem have hinv_pos : 0 < α⁻¹ := inv_pos.mpr hα_pos have hinv_eq : 2 / α = α⁻¹ + α⁻¹ := by rw [div_eq_mul_inv]; ring have hS_gt_neg1 : -1 < S_rem := by linarith have hS_lt_1 : S_rem < 1 := by linarith by_cases hS0 : 0 ≤ S_rem · have hfl : ⌊S_rem⌋ = 0 := Int.floor_eq_iff.mpr ⟨by simpa using hS0, by simpa using hS_lt_1⟩ have hfr : Int.fract S_rem = S_rem := by simp [Int.fract, hfl] rw [hfr] at hmem linarith [hmem.1] · push Not at hS0 have hfl : ⌊S_rem⌋ = -1 := Int.floor_eq_iff.mpr ⟨by push_cast; linarith, by push_cast; linarith⟩ have hfr : Int.fract S_rem = S_rem + 1 := by rw [Int.fract, hfl]; push_cast; ring rw [hfr] at hmem linarith [hmem.2] /-- Pure interval-centering helper: converts an open interval `(lo, hi) ⊆ (0, 1)` into the centered form `(x - r, x + r) ⊆ (0, 1)` and deduces non-equidistribution for all `ξ ∈ C(α)`. -/ private lemma exists_centered_gap_and_not_equidist {α lo hi : ℝ} (hlo_pos : 0 < lo) (hlo_lt_hi : lo < hi) (hhi_lt1 : hi < 1) (hgap : ∀ ξ ∈ pisotCantorSet α, ∀ n : ℕ, Int.fract (ξ * α ^ n) ∉ Set.Ioo lo hi) : (∃ x r : ℝ, 0 < r ∧ Set.Ioo (x - r) (x + r) ⊆ Set.Ioo (0 : ℝ) 1 ∧ ∀ ξ ∈ pisotCantorSet α, ∀ n : ℕ, Int.fract (ξ * α ^ n) ∉ Set.Ioo (x - r) (x + r)) ∧ (∀ ξ ∈ pisotCantorSet α, ¬ IsEquidistributedModuloOne (fun n => ξ * α ^ (n + 1))) := by let x := (lo + hi) / 2 let r := (hi - lo) / 2 have hIoo_eq : Set.Ioo (x - r) (x + r) = Set.Ioo lo hi := by ext t; dsimp only [x, r]; constructor <;> rintro ⟨h1, h2⟩ <;> exact ⟨by linarith, by linarith⟩ have hsub : Set.Ioo (x - r) (x + r) ⊆ Set.Ioo (0 : ℝ) 1 := by rw [hIoo_eq] intro t ht exact ⟨lt_trans hlo_pos ht.1, lt_trans ht.2 hhi_lt1⟩ have hr_pos : 0 < r := by dsimp only [r]; linarith refine ⟨⟨x, r, hr_pos, hsub, fun ξ hξ n => by rw [hIoo_eq]; exact hgap ξ hξ n⟩, ?_⟩ intro ξ hξ exact not_equidistributedModuloOne_of_missed_Ioo hr_pos hsub (fun n => by rw [hIoo_eq]; exact hgap ξ hξ (n + 1)) /-- **Pillar 1 (Master Arbitrary-Degree Reduced Conjugate Width Theorem):** Let `P ∈ ℤ[X]` be monic of arbitrary degree `d ≥ 2`, with real root `α > 2`, and suppose there exist integers `k_m : ℤ` such that the reduced conjugate shift weights `w̃_m = reducedShiftWeight P α m` satisfy $$\frac{2}{\alpha} + \sum_{m=0}^{\infty} |\tilde{w}_m - k_m| < 1.$$ Then there exists a **single explicit open interval** `J = (1/2 - r, 1/2 + r) ⊆ (0, 1)` missed by `Int.fract (ξ * α ^ n)` for **every** `ξ ∈ C(α)` and **every** `n : ℕ`. Consequently, `(ξ * α ^ n)_{n ≥ 1}` is never uniformly distributed modulo `1` for any `ξ ∈ C(α)`! -/ theorem confinement_gap_of_reduced_width_lt_one {P : ℤ[X]} (hP : P.Monic) {α : ℝ} (hα2 : 2 < α) (hα : Polynomial.aeval α P = 0) (k : ℕ → ℤ) (hsumm : Summable (fun m => |reducedShiftWeight P α m - (k m : ℝ)|)) (hwidth : 2 / α + (∑' m : ℕ, |reducedShiftWeight P α m - (k m : ℝ)|) < 1) : (∃ x r : ℝ, 0 < r ∧ Set.Ioo (x - r) (x + r) ⊆ Set.Ioo (0 : ℝ) 1 ∧ ∀ ξ ∈ pisotCantorSet α, ∀ n : ℕ, Int.fract (ξ * α ^ n) ∉ Set.Ioo (x - r) (x + r)) ∧ (∀ ξ ∈ pisotCantorSet α, ¬ IsEquidistributedModuloOne (fun n => ξ * α ^ (n + 1))) := by have hα1 : 1 < α := by linarith only [hα2] have hα_pos : 0 < α := by linarith only [hα2] have hinv_pos : 0 < α⁻¹ := inv_pos.mpr hα_pos have hinv_eq : 2 / α = α⁻¹ + α⁻¹ := by rw [div_eq_mul_inv]; ring let g : ℕ → ℝ := fun m => reducedShiftWeight P α m - (k m : ℝ) have hs_pos : Summable (fun m => max (0 : ℝ) (g m)) := Summable.of_nonneg_of_le (fun _ => le_max_left _ _) (fun m => max_le (abs_nonneg _) (le_abs_self _)) hsumm have hs_neg : Summable (fun m => max (0 : ℝ) (-(g m))) := Summable.of_nonneg_of_le (fun _ => le_max_left _ _) (fun m => max_le (abs_nonneg _) (neg_le_abs _)) hsumm have hLpos0 : 0 ≤ ∑' m : ℕ, max (0 : ℝ) (g m) := tsum_nonneg (fun _ => le_max_left _ _) have hLneg0 : 0 ≤ ∑' m : ℕ, max (0 : ℝ) (-(g m)) := tsum_nonneg (fun _ => le_max_left _ _) have hLsum : (∑' m : ℕ, max (0 : ℝ) (g m)) + (∑' m : ℕ, max (0 : ℝ) (-(g m))) = ∑' m : ℕ, |g m| := by rw [← hs_pos.tsum_add hs_neg] congr 1; ext m by_cases h : 0 ≤ g m · rw [max_eq_right h, max_eq_left (by linarith only [h]), abs_of_nonneg h, add_zero] · push Not at h rw [max_eq_left h.le, max_eq_right (by linarith only [h]), abs_of_neg h, zero_add] have hsum_lt1 : 2 / α + ((∑' m : ℕ, max (0 : ℝ) (g m)) + (∑' m : ℕ, max (0 : ℝ) (-(g m)))) < 1 := by rw [hLsum]; exact hwidth have hlo_pos : 0 < (∑' m : ℕ, max (0 : ℝ) (g m)) + α⁻¹ := add_pos_of_nonneg_of_pos hLpos0 hinv_pos have hhi_lt1 : 1 - (∑' m : ℕ, max (0 : ℝ) (-(g m))) - α⁻¹ < 1 := by have : 0 < (∑' m : ℕ, max (0 : ℝ) (-(g m))) + α⁻¹ := add_pos_of_nonneg_of_pos hLneg0 hinv_pos linarith only [this] have hlo_lt_hi : (∑' m : ℕ, max (0 : ℝ) (g m)) + α⁻¹ < 1 - (∑' m : ℕ, max (0 : ℝ) (-(g m))) - α⁻¹ := by linarith only [hsum_lt1, hinv_eq] refine exists_centered_gap_and_not_equidist hlo_pos hlo_lt_hi hhi_lt1 ?_ rintro ξ ⟨ε, rfl⟩ n rw [cantorPoint_mul_pow_split hα1 ε n] have hterm_int : ∀ m : ℕ, ∃ z : ℤ, (if ε (n - 1 - m) then (1 : ℝ) else 0) * (α ^ m * (α - 1)) = (z : ℝ) + (if ε (n - 1 - m) then (1 : ℝ) else 0) * g m := by intro m rcases alpha_pow_mul_sub_one_mod_int hP hα m with ⟨zm, hzm⟩ cases ε (n - 1 - m) · exact ⟨0, by simp⟩ · refine ⟨zm + k m, ?_⟩ simp only [↓reduceIte, one_mul, Int.cast_add, g] linarith only [hzm] choose zfun hzfun using hterm_int rcases cantorPoint_near_int hα1 (fun j => ε (j + n)) with ⟨zT, hzT⟩ have hsum_eq : ∑ m ∈ Finset.range n, (if ε (n - 1 - m) then (1 : ℝ) else 0) * (α ^ m * (α - 1)) = ((∑ m ∈ Finset.range n, zfun m : ℤ) : ℝ) + ∑ m ∈ Finset.range n, (if ε (n - 1 - m) then (1 : ℝ) else 0) * g m := by rw [Int.cast_sum, ← Finset.sum_add_distrib] exact Finset.sum_congr rfl (fun m _ => hzfun m) have hval_eq : (∑ m ∈ Finset.range n, (if ε (n - 1 - m) then (1 : ℝ) else 0) * (α ^ m * (α - 1))) + cantorPoint α (fun j => ε (j + n)) = (((∑ m ∈ Finset.range n, zfun m) + zT : ℤ) : ℝ) + ((∑ m ∈ Finset.range n, (if ε (n - 1 - m) then (1 : ℝ) else 0) * g m) + (cantorPoint α (fun j => ε (j + n)) - (zT : ℝ))) := by rw [hsum_eq, Int.cast_add] abel have hS_upper : (∑ m ∈ Finset.range n, (if ε (n - 1 - m) then (1 : ℝ) else 0) * g m) + (cantorPoint α (fun j => ε (j + n)) - (zT : ℝ)) ≤ (∑' m : ℕ, max (0 : ℝ) (g m)) + α⁻¹ := by have h1 : (∑ m ∈ Finset.range n, (if ε (n - 1 - m) then (1 : ℝ) else 0) * g m) ≤ ∑ m ∈ Finset.range n, max (0 : ℝ) (g m) := by apply Finset.sum_le_sum intro m _ cases ε (n - 1 - m) <;> simp have h2 : (∑ m ∈ Finset.range n, max (0 : ℝ) (g m)) ≤ ∑' m : ℕ, max (0 : ℝ) (g m) := hs_pos.sum_le_tsum (Finset.range n) (fun _ _ => le_max_left _ _) exact add_le_add (le_trans h1 h2) (abs_le.mp hzT).2 have hS_lower : -(∑' m : ℕ, max (0 : ℝ) (-(g m))) - α⁻¹ ≤ (∑ m ∈ Finset.range n, (if ε (n - 1 - m) then (1 : ℝ) else 0) * g m) + (cantorPoint α (fun j => ε (j + n)) - (zT : ℝ)) := by have h1 : -(∑ m ∈ Finset.range n, max (0 : ℝ) (-(g m))) ≤ ∑ m ∈ Finset.range n, (if ε (n - 1 - m) then (1 : ℝ) else 0) * g m := by rw [← Finset.sum_neg_distrib] apply Finset.sum_le_sum intro m _ cases ε (n - 1 - m) · simp only [Bool.false_eq_true, ↓reduceIte, zero_mul] exact neg_nonpos.mpr (le_max_left _ _) · simp only [↓reduceIte, one_mul] exact neg_le.mp (le_max_right _ _) have h2 : (∑ m ∈ Finset.range n, max (0 : ℝ) (-(g m))) ≤ ∑' m : ℕ, max (0 : ℝ) (-(g m)) := hs_neg.sum_le_tsum (Finset.range n) (fun _ _ => le_max_left _ _) rw [sub_eq_add_neg] exact add_le_add (le_trans (neg_le_neg h2) h1) (abs_le.mp hzT).1 rw [hval_eq] exact fract_not_mem_Ioo_of_int_add_bounds hLpos0 hLneg0 hα_pos hsum_lt1 hS_lower hS_upper /-- **Clean `ℓ¹` Power-Sum Corollary of Pillar 1:** Using `k_m = 0` and the elementary triangle bound `∑_{m=0}^∞ |w̃_m| ≤ 2 ∑_{m=1}^∞ |s_m|`, whenever `2 / α + 2 * ∑' m, |conjPowerSum P α (m + 1)| < 1`, strong confinement and Bugeaud Problem 10.61 hold for `α`! -/ theorem confinement_gap_of_power_sum_l1_lt_one {P : ℤ[X]} (hP : P.Monic) {α : ℝ} (hα2 : 2 < α) (hα : Polynomial.aeval α P = 0) (hsumm : Summable (fun m : ℕ => |conjPowerSum P α (m + 1)|)) (hbound : 2 / α + 2 * (∑' m : ℕ, |conjPowerSum P α (m + 1)|) < 1) : (∃ x r : ℝ, 0 < r ∧ Set.Ioo (x - r) (x + r) ⊆ Set.Ioo (0 : ℝ) 1 ∧ ∀ ξ ∈ pisotCantorSet α, ∀ n : ℕ, Int.fract (ξ * α ^ n) ∉ Set.Ioo (x - r) (x + r)) ∧ (∀ ξ ∈ pisotCantorSet α, ¬ IsEquidistributedModuloOne (fun n => ξ * α ^ (n + 1))) := by have hsumm_shift : Summable (fun m : ℕ => |conjPowerSum P α (m + 2)|) := (summable_nat_add_iff 1).mpr hsumm have hsumm_w : Summable (fun m : ℕ => |reducedShiftWeight P α m - ((0 : ℤ) : ℝ)|) := by rw [← summable_nat_add_iff 1] have hsum2 : Summable (fun m : ℕ => |conjPowerSum P α (m + 1)| + |conjPowerSum P α (m + 2)|) := hsumm.add hsumm_shift refine Summable.of_nonneg_of_le (fun _ => abs_nonneg _) (fun m => ?_) hsum2 simp only [Int.cast_zero, sub_zero, reducedShiftWeight] exact abs_sub _ _ have htsum_le : (∑' m : ℕ, |reducedShiftWeight P α m - ((0 : ℤ) : ℝ)|) ≤ 2 * (∑' m : ℕ, |conjPowerSum P α (m + 1)|) := by rw [hsumm_w.tsum_eq_zero_add] have h0 : |reducedShiftWeight P α 0 - ((0 : ℤ) : ℝ)| = |conjPowerSum P α 1| := by simp [reducedShiftWeight] rw [h0] have htail : (∑' m : ℕ, |reducedShiftWeight P α (m + 1) - ((0 : ℤ) : ℝ)|) ≤ (∑' m : ℕ, |conjPowerSum P α (m + 1)|) + (∑' m : ℕ, |conjPowerSum P α (m + 2)|) := by rw [← hsumm.tsum_add hsumm_shift] apply Summable.tsum_le_tsum _ ((summable_nat_add_iff 1).mpr hsumm_w) (hsumm.add hsumm_shift) intro m simp only [Int.cast_zero, sub_zero, reducedShiftWeight] exact abs_sub _ _ have htail2 : |conjPowerSum P α 1| + (∑' m : ℕ, |conjPowerSum P α (m + 2)|) = ∑' m : ℕ, |conjPowerSum P α (m + 1)| := (hsumm.tsum_eq_zero_add).symm linarith exact confinement_gap_of_reduced_width_lt_one hP hα2 hα (fun _ => 0) hsumm_w (lt_of_le_of_lt (add_le_add (le_refl (2 / α)) htsum_le) hbound) /-! ## Section 5: Pillar 2 — Exponential-to-Linear Trace-Cancellation on `X^d - a X^{d-1} + b` -/ /-- The sparse arbitrary-degree Pisot trinomial `P_{d,a,b}(X) = X^d - a X^{d-1} + b`. -/ def pisotTrinomial (d : ℕ) (a b : ℤ) : ℤ[X] := X ^ d - C a * X ^ (d - 1) + C b lemma pisotTrinomial_natDegree {d : ℕ} (hd : 2 ≤ d) (a b : ℤ) : (pisotTrinomial d a b).natDegree = d := by unfold pisotTrinomial have h1 : (X ^ d : ℤ[X]).natDegree = d := natDegree_X_pow d have h2 : (-C a * X ^ (d - 1) + C b : ℤ[X]).natDegree < d := by have h2a : (-C a * X ^ (d - 1) : ℤ[X]).natDegree ≤ d - 1 := by calc (-C a * X ^ (d - 1) : ℤ[X]).natDegree ≤ (-C a : ℤ[X]).natDegree + (X ^ (d - 1) : ℤ[X]).natDegree := natDegree_mul_le _ ≤ 0 + (d - 1) := by simp _ = d - 1 := by omega have h2b : (C b : ℤ[X]).natDegree = 0 := natDegree_C b calc (-C a * X ^ (d - 1) + C b : ℤ[X]).natDegree ≤ max (-C a * X ^ (d - 1) : ℤ[X]).natDegree (C b : ℤ[X]).natDegree := natDegree_add_le _ _ _ ≤ d - 1 := max_le h2a (by omega) _ < d := by omega have heq : (X ^ d - C a * X ^ (d - 1) + C b : ℤ[X]) = X ^ d + (-C a * X ^ (d - 1) + C b) := by ring rw [heq, natDegree_add_eq_left_of_natDegree_lt (by omega), h1] lemma pisotTrinomial_monic {d : ℕ} (hd : 2 ≤ d) (a b : ℤ) : (pisotTrinomial d a b).Monic := by rw [Polynomial.Monic.def, Polynomial.leadingCoeff, pisotTrinomial_natDegree hd a b] unfold pisotTrinomial simp only [coeff_add, coeff_sub, coeff_X_pow, coeff_C_mul_X_pow, coeff_C] have h1 : d ≠ d - 1 := by omega have h0 : d ≠ 0 := by omega simp [h1, h0] lemma pisotTrinomial_aeval_real {d : ℕ} (a b : ℤ) (x : ℝ) : Polynomial.aeval x (pisotTrinomial d a b) = x ^ d - (a : ℝ) * x ^ (d - 1) + (b : ℝ) := by simp [pisotTrinomial] /-- **Purely Algebraic Pisot Property for `X^d - a X^{d-1} + b` (Zero Rouché's Theorem!)**: If `d ≥ 2`, `b ≠ 0`, `a ≥ |b| + 2`, and `α > |b| + 1` is a real root of `X^d - a X^{d-1} + b`, then EVERY other complex root `z` of `X^d - a X^{d-1} + b` satisfies `‖z‖ < 1` (in fact `‖z‖ ^ (d - 1) ≤ |b| / (a - 1) < 1`), and hence `IsPisot α`! -/ theorem trinomial_conjugate_norm_lt_one {d : ℕ} (hd : 2 ≤ d) {a b : ℤ} (hb : b ≠ 0) (ha : |b| + 2 ≤ a) {α : ℝ} (hα_gt : ((|b| : ℝ) + 1) < α) (hα : Polynomial.aeval α (pisotTrinomial d a b) = 0) : (∀ z ∈ conjugateRoots (pisotTrinomial d a b) α, ‖z‖ < 1) ∧ (∀ z ∈ conjugateRoots (pisotTrinomial d a b) α, ‖z‖ ^ (d - 1) ≤ (|b| : ℝ) / ((a : ℝ) - 1)) ∧ IsPisot α := by have hα_pos : 0 < α := by have : (0 : ℝ) ≤ (|b| : ℝ) := by positivity linarith have hα_eq : α ^ d - (a : ℝ) * α ^ (d - 1) + (b : ℝ) = 0 := by rwa [pisotTrinomial_aeval_real] at hα -- Explicit algebraic factorization: `P(z) = (z - α) * Q(z)` where -- `Q(z) = z^(d-1) - b * ∑_{j=0}^{d-2} α^{-(j+1)} z^j`! have hα_pos' : 1 < α := by have hb1 : (1 : ℤ) ≤ |b| := Int.one_le_abs hb have hb1R : (1 : ℝ) ≤ (|b| : ℝ) := by exact_mod_cast hb1 linarith have hαc_ne : (α : ℂ) ≠ 0 := Complex.ofReal_ne_zero.mpr hα_pos.ne' set Q : ℂ[X] := X ^ (d - 1) - C (b : ℂ) * ∑ j ∈ Finset.range (d - 1), C (((α : ℂ)⁻¹) ^ (j + 1)) * X ^ j have hP_fac : (pisotTrinomial d a b).map (algebraMap ℤ ℂ) = (X - C (α : ℂ)) * Q := by -- Verify equality via polynomial evaluation at every `z : ℂ` (since `ℂ` is infinite)! apply Polynomial.funext intro z have hα_eqC : (α : ℂ) ^ d - (a : ℂ) * (α : ℂ) ^ (d - 1) + (b : ℂ) = 0 := by exact_mod_cast hα_eq have htele : (z - (α : ℂ)) * (∑ j ∈ Finset.range (d - 1), ((α : ℂ)⁻¹) ^ (j + 1) * z ^ j) = ((α : ℂ)⁻¹) ^ (d - 1) * z ^ (d - 1) - 1 := by have hsub : (z - (α : ℂ)) * (∑ j ∈ Finset.range (d - 1), ((α : ℂ)⁻¹) ^ (j + 1) * z ^ j) = (∑ j ∈ Finset.range (d - 1), ((α : ℂ)⁻¹) ^ (j + 1) * z ^ (j + 1)) - (∑ j ∈ Finset.range (d - 1), ((α : ℂ)⁻¹) ^ j * z ^ j) := by rw [sub_mul, Finset.mul_sum, Finset.mul_sum] congr 1 · apply Finset.sum_congr rfl; intro j _; rw [pow_succ]; ring · apply Finset.sum_congr rfl; intro j _ rw [pow_succ'] calc (α : ℂ) * ((α : ℂ)⁻¹ * (α : ℂ)⁻¹ ^ j * z ^ j) = ((α : ℂ) * (α : ℂ)⁻¹) * ((α : ℂ)⁻¹ ^ j * z ^ j) := by ring _ = (α : ℂ)⁻¹ ^ j * z ^ j := by rw [mul_inv_cancel₀ hαc_ne, one_mul] rw [hsub] have htel := Finset.sum_range_sub (fun j => ((α : ℂ)⁻¹) ^ j * z ^ j) (d - 1) simpa using htel have hα_sub_a : (α : ℂ) + (b : ℂ) * ((α : ℂ)⁻¹) ^ (d - 1) = (a : ℂ) := by apply mul_left_cancel₀ (pow_ne_zero (d - 1) hαc_ne) have hd1 : (α : ℂ) ^ (d - 1) * (α : ℂ) = (α : ℂ) ^ d := by rw [← pow_succ, Nat.sub_add_cancel (by omega)] have hinv : (α : ℂ) ^ (d - 1) * ((α : ℂ)⁻¹) ^ (d - 1) = 1 := by rw [← mul_pow, mul_inv_cancel₀ hαc_ne, one_pow] calc (α : ℂ) ^ (d - 1) * ((α : ℂ) + (b : ℂ) * ((α : ℂ)⁻¹) ^ (d - 1)) = (α : ℂ) ^ d + (b : ℂ) * ((α : ℂ) ^ (d - 1) * ((α : ℂ)⁻¹) ^ (d - 1)) := by rw [mul_add, hd1]; ring _ = (α : ℂ) ^ d + (b : ℂ) := by rw [hinv, mul_one] _ = (α : ℂ) ^ (d - 1) * (a : ℂ) := by linear_combination hα_eqC have hLHS : Polynomial.eval z ((pisotTrinomial d a b).map (algebraMap ℤ ℂ)) = z ^ d - (a : ℂ) * z ^ (d - 1) + (b : ℂ) := by simp [pisotTrinomial] have hRHS : Polynomial.eval z ((X - C (α : ℂ)) * Q) = (z - (α : ℂ)) * (z ^ (d - 1) - (b : ℂ) * ∑ j ∈ Finset.range (d - 1), ((α : ℂ)⁻¹) ^ (j + 1) * z ^ j) := by simp [Q, Polynomial.eval_finsetSum] rw [hLHS, hRHS] have hd1 : z * z ^ (d - 1) = z ^ d := by rw [← pow_succ', Nat.sub_add_cancel (by omega)] calc z ^ d - (a : ℂ) * z ^ (d - 1) + (b : ℂ) = z * z ^ (d - 1) - ((α : ℂ) + (b : ℂ) * ((α : ℂ)⁻¹) ^ (d - 1)) * z ^ (d - 1) + (b : ℂ) := by rw [hd1, hα_sub_a] _ = (z - (α : ℂ)) * z ^ (d - 1) - (b : ℂ) * (((α : ℂ)⁻¹) ^ (d - 1) * z ^ (d - 1) - 1) := by ring _ = (z - (α : ℂ)) * z ^ (d - 1) - (b : ℂ) * ((z - (α : ℂ)) * ∑ j ∈ Finset.range (d - 1), ((α : ℂ)⁻¹) ^ (j + 1) * z ^ j) := by rw [← htele] _ = (z - (α : ℂ)) * (z ^ (d - 1) - (b : ℂ) * ∑ j ∈ Finset.range (d - 1), ((α : ℂ)⁻¹) ^ (j + 1) * z ^ j) := by ring -- Key 3-line bound: `Q.eval z ≠ 0` for EVERY `z : ℂ` with `‖z‖ ≥ 1`! have hQ_ne_zero_of_ge_one : ∀ z : ℂ, 1 ≤ ‖z‖ → Polynomial.eval z Q ≠ 0 := by intro z hz1 hQz0 have heq : z ^ (d - 1) = (b : ℂ) * ∑ j ∈ Finset.range (d - 1), ((α : ℂ)⁻¹) ^ (j + 1) * z ^ j := by have h1 : z ^ (d - 1) - (b : ℂ) * ∑ j ∈ Finset.range (d - 1), ((α : ℂ)⁻¹) ^ (j + 1) * z ^ j = 0 := by simpa [Q, Polynomial.eval_finsetSum] using hQz0 exact sub_eq_zero.mp h1 have hnorm := congrArg norm heq rw [norm_pow, norm_mul, Complex.norm_intCast] at hnorm have hsum_le : ‖∑ j ∈ Finset.range (d - 1), ((α : ℂ)⁻¹) ^ (j + 1) * z ^ j‖ ≤ ∑ j ∈ Finset.range (d - 1), (α⁻¹) ^ (j + 1) * ‖z‖ ^ (d - 2) := by refine le_trans (norm_sum_le _ _) (Finset.sum_le_sum fun j hj => ?_) have hj_le : j ≤ d - 2 := by have := Finset.mem_range.mp hj; omega rw [norm_mul, norm_pow, norm_pow, norm_inv, Complex.norm_real, Real.norm_of_nonneg hα_pos.le] exact mul_le_mul_of_nonneg_left (pow_le_pow_right₀ hz1 hj_le) (by positivity) have hgeom_lt : (∑ j ∈ Finset.range (d - 1), (α⁻¹) ^ (j + 1)) < (α - 1)⁻¹ := by have hinv0 : 0 ≤ α⁻¹ := by positivity have hinv1 : α⁻¹ < 1 := inv_lt_one_of_one_lt₀ hα_pos' have hfac : (∑ j ∈ Finset.range (d - 1), (α⁻¹) ^ (j + 1)) = α⁻¹ * ∑ j ∈ Finset.range (d - 1), (α⁻¹) ^ j := by rw [Finset.mul_sum]; apply Finset.sum_congr rfl; intro j _; rw [pow_succ'] rw [hfac, geom_sum_eq hinv1.ne] have hsub_pos : 0 < 1 - α⁻¹ := by linarith have hnum : (α⁻¹) ^ (d - 1) - 1 < 0 := by have : (α⁻¹) ^ (d - 1) < 1 := pow_lt_one₀ hinv0 hinv1 (by omega) linarith have hrew : α⁻¹ * (((α⁻¹) ^ (d - 1) - 1) / (α⁻¹ - 1)) = (1 - (α⁻¹) ^ (d - 1)) / (α - 1) := by have hα0 : α ≠ 0 := hα_pos.ne' have hα1 : α - 1 ≠ 0 := by linarith have hden : α⁻¹ - 1 = -(α - 1) / α := by rw [inv_eq_one_div] field_simp [hα0] ring rw [hden, inv_eq_one_div] field_simp [hα0, hα1] ring rw [hrew, show (α - 1)⁻¹ = 1 / (α - 1) from inv_eq_one_div _] apply div_lt_div_of_pos_right _ (by linarith) have hpow_pos : 0 < (α⁻¹) ^ (d - 1) := pow_pos (by positivity) _ linarith have hsum_lt : (∑ j ∈ Finset.range (d - 1), (α⁻¹) ^ (j + 1) * ‖z‖ ^ (d - 2)) < (α - 1)⁻¹ * ‖z‖ ^ (d - 2) := by rw [← Finset.sum_mul] exact mul_lt_mul_of_pos_right hgeom_lt (pow_pos (by linarith) _) have hb_pos : (0 : ℝ) < (|b| : ℝ) := by have : (1 : ℤ) ≤ |b| := Int.one_le_abs hb have : (1 : ℝ) ≤ (|b| : ℝ) := by exact_mod_cast this linarith have hstrict : ‖z‖ ^ (d - 1) < (|b| : ℝ) * ((α - 1)⁻¹ * ‖z‖ ^ (d - 2)) := by rw [hnorm] exact mul_lt_mul_of_pos_left (lt_of_le_of_lt hsum_le hsum_lt) hb_pos have hpow_split : ‖z‖ ^ (d - 1) = ‖z‖ * ‖z‖ ^ (d - 2) := by rw [← pow_succ', show d - 2 + 1 = d - 1 by omega] rw [hpow_split] at hstrict have h1 : ‖z‖ < (|b| : ℝ) * (α - 1)⁻¹ := by have hz_pow_pos : 0 < ‖z‖ ^ (d - 2) := pow_pos (by linarith) _ nlinarith have h2 : (|b| : ℝ) * (α - 1)⁻¹ < 1 := by rw [← div_eq_mul_inv, div_lt_one (by linarith)] linarith linarith -- Since `Q ≠ 0` (as `Q.eval α ≠ 0`), `(P.map ...).roots = α ::ₘ Q.roots`, so `conjugateRoots P α = Q.roots`! have hQ_ne : Q ≠ 0 := by intro h0 have := hQ_ne_zero_of_ge_one (α : ℂ) (by rw [Complex.norm_real, Real.norm_of_nonneg hα_pos.le]; linarith) rw [h0, Polynomial.eval_zero] at this exact this rfl have hroots_eq : conjugateRoots (pisotTrinomial d a b) α = Q.roots := by unfold conjugateRoots rw [hP_fac, Polynomial.roots_mul (mul_ne_zero (Polynomial.X_sub_C_ne_zero _) hQ_ne), Polynomial.roots_X_sub_C, Multiset.singleton_add, Multiset.erase_cons_head] have hnorm_lt : ∀ z ∈ conjugateRoots (pisotTrinomial d a b) α, ‖z‖ < 1 := by intro z hz rw [hroots_eq, Polynomial.mem_roots hQ_ne] at hz by_contra hge push Not at hge exact hQ_ne_zero_of_ge_one z hge hz have hnorm_pow : ∀ z ∈ conjugateRoots (pisotTrinomial d a b) α, ‖z‖ ^ (d - 1) ≤ (|b| : ℝ) / ((a : ℝ) - 1) := by intro z hz have hz_lt1 : ‖z‖ < 1 := hnorm_lt z hz have hPz0 : Polynomial.eval z ((pisotTrinomial d a b).map (algebraMap ℤ ℂ)) = 0 := by rw [hP_fac, Polynomial.eval_mul] rw [hroots_eq, Polynomial.mem_roots hQ_ne] at hz rw [hz, mul_zero] have hzeq : z ^ d - (a : ℂ) * z ^ (d - 1) + (b : ℂ) = 0 := by simpa [pisotTrinomial] using hPz0 have hfacz : z ^ (d - 1) * ((a : ℂ) - z) = (b : ℂ) := by have hd1 : z ^ (d - 1) * z = z ^ d := by rw [← pow_succ, Nat.sub_add_cancel (by omega)] linear_combination -hzeq - hd1 have hnz := congrArg norm hfacz rw [norm_mul, norm_pow, Complex.norm_intCast] at hnz have ha_pos : (1 : ℝ) < (a : ℝ) := by have hb1 : (1 : ℤ) ≤ |b| := Int.one_le_abs hb have : (3 : ℤ) ≤ a := by omega have : (3 : ℝ) ≤ (a : ℝ) := by exact_mod_cast this linarith have hdist : (a : ℝ) - 1 ≤ ‖(a : ℂ) - z‖ := by have htri : ‖(a : ℂ)‖ ≤ ‖(a : ℂ) - z‖ + ‖z‖ := by simpa [sub_add_cancel] using norm_add_le ((a : ℂ) - z) z have hna : ‖(a : ℂ)‖ = (a : ℝ) := by rw [Complex.norm_intCast, abs_of_pos (by linarith)] linarith rw [le_div_iff₀ (by linarith)] calc ‖z‖ ^ (d - 1) * ((a : ℝ) - 1) ≤ ‖z‖ ^ (d - 1) * ‖(a : ℂ) - z‖ := mul_le_mul_of_nonneg_left hdist (pow_nonneg (norm_nonneg z) _) _ = (|b| : ℝ) := hnz -- Deduce `IsPisot α`: have hisPisot : IsPisot α := by refine ⟨hα_pos', ⟨pisotTrinomial d a b, pisotTrinomial_monic hd a b, hα⟩, ?_⟩ intro z hz hzα rw [Polynomial.mem_aroots'] at hz have hdvd : minpoly ℚ α ∣ (pisotTrinomial d a b).map (algebraMap ℤ ℚ) := by apply minpoly.dvd rw [Polynomial.aeval_map_algebraMap] exact hα rcases hdvd with ⟨g, hg⟩ have hPz0 : Polynomial.eval z ((pisotTrinomial d a b).map (algebraMap ℤ ℂ)) = 0 := by have h1 : Polynomial.aeval z ((pisotTrinomial d a b).map (algebraMap ℤ ℚ)) = 0 := by rw [hg, map_mul, hz.2, zero_mul] rw [Polynomial.aeval_map_algebraMap] at h1 simpa [Polynomial.aeval_def, Polynomial.eval₂_eq_eval_map] using h1 rw [hP_fac, Polynomial.eval_mul, Polynomial.eval_sub, Polynomial.eval_X, Polynomial.eval_C] at hPz0 have hQz0 : Polynomial.eval z Q = 0 := (mul_eq_zero.mp hPz0).resolve_left (sub_ne_zero.mpr hzα) exact hnorm_lt z (by rw [hroots_eq, Polynomial.mem_roots hQ_ne]; exact hQz0) exact ⟨hnorm_lt, hnorm_pow, hisPisot⟩ /-- Existence and tight location of the unique real Pisot root `α` of `X^d - a X^{d-1} + b` for all `d ≥ 2`, `b ≠ 0`, `a ≥ |b| + 2`, together with the sharp Bernoulli bound `(a / α) ^ (d - 1) ≤ 2` when `a ^ d > 4 * (d - 1) * |b|`. -/ theorem exists_pisot_root_trinomial {d : ℕ} (hd : 2 ≤ d) {a b : ℤ} (hb : b ≠ 0) (ha : |b| + 2 ≤ a) : ∃ α : ℝ, (a : ℝ) - 1 < α ∧ α < (a : ℝ) + 1 ∧ ((0 < b → α < (a : ℝ)) ∧ (b < 0 → (a : ℝ) < α)) ∧ Polynomial.aeval α (pisotTrinomial d a b) = 0 := by set f : ℝ → ℝ := fun x => x ^ d - (a : ℝ) * x ^ (d - 1) + (b : ℝ) have hf_cont : Continuous f := by fun_prop have hb1 : (1 : ℤ) ≤ |b| := Int.one_le_abs hb have ha3 : (3 : ℝ) ≤ (a : ℝ) := by have : (3 : ℤ) ≤ a := by omega exact_mod_cast this have hba : (|b| : ℝ) + 2 ≤ (a : ℝ) := by exact_mod_cast ha by_cases hbpos : 0 < b · -- `b > 0`: `f(a - 1) < 0 < f(a)`, so IVT gives `α ∈ (a - 1, a)`. have hfa : 0 < f (a : ℝ) := by dsimp [f] have hd1 : (a : ℝ) ^ d = (a : ℝ) * (a : ℝ) ^ (d - 1) := by rw [← pow_succ', Nat.sub_add_cancel (by omega)] rw [hd1] have : (0 : ℝ) < (b : ℝ) := by exact_mod_cast hbpos linarith have hfam1 : f ((a : ℝ) - 1) < 0 := by dsimp [f] have hd1 : ((a : ℝ) - 1) ^ d - (a : ℝ) * ((a : ℝ) - 1) ^ (d - 1) = -((a : ℝ) - 1) ^ (d - 1) := by have h1 : ((a : ℝ) - 1) ^ d = ((a : ℝ) - 1) * ((a : ℝ) - 1) ^ (d - 1) := by rw [← pow_succ', Nat.sub_add_cancel (by omega)] rw [h1]; ring rw [hd1] have hpow : (a : ℝ) - 1 ≤ ((a : ℝ) - 1) ^ (d - 1) := le_self_pow₀ (by linarith) (by omega) have hb_le : (b : ℝ) ≤ (|b| : ℝ) := by exact_mod_cast le_abs_self b linarith have hivt : (0 : ℝ) ∈ Set.Icc (f ((a : ℝ) - 1)) (f (a : ℝ)) := ⟨hfam1.le, hfa.le⟩ rcases intermediate_value_Icc (by linarith : (a : ℝ) - 1 ≤ (a : ℝ)) hf_cont.continuousOn hivt with ⟨α, hαI, hα0⟩ have hα_gt : (a : ℝ) - 1 < α := lt_of_le_of_ne hαI.1 (fun h => by rw [← h] at hα0; linarith) have hα_lt : α < (a : ℝ) := lt_of_le_of_ne hαI.2 (fun h => by rw [h] at hα0; linarith) refine ⟨α, hα_gt, by linarith, ⟨fun _ => hα_lt, fun h => by omega⟩, ?_⟩ rw [pisotTrinomial_aeval_real]; exact hα0 · -- `b < 0`: `f(a) < 0 < f(a + 1)`, so IVT gives `α ∈ (a, a + 1)`. have hbneg : b < 0 := lt_of_le_of_ne (not_lt.mp hbpos) hb have hfa : f (a : ℝ) < 0 := by dsimp [f] have hd1 : (a : ℝ) ^ d = (a : ℝ) * (a : ℝ) ^ (d - 1) := by rw [← pow_succ', Nat.sub_add_cancel (by omega)] rw [hd1] have : (b : ℝ) < 0 := by exact_mod_cast hbneg linarith have hfap1 : 0 < f ((a : ℝ) + 1) := by dsimp [f] have hd1 : ((a : ℝ) + 1) ^ d - (a : ℝ) * ((a : ℝ) + 1) ^ (d - 1) = ((a : ℝ) + 1) ^ (d - 1) := by have h1 : ((a : ℝ) + 1) ^ d = ((a : ℝ) + 1) * ((a : ℝ) + 1) ^ (d - 1) := by rw [← pow_succ', Nat.sub_add_cancel (by omega)] rw [h1]; ring rw [hd1] have hpow : (a : ℝ) + 1 ≤ ((a : ℝ) + 1) ^ (d - 1) := le_self_pow₀ (by linarith) (by omega) have hb_ge : -(|b| : ℝ) ≤ (b : ℝ) := by have : -|b| ≤ b := neg_abs_le b exact_mod_cast this linarith have hivt : (0 : ℝ) ∈ Set.Icc (f (a : ℝ)) (f ((a : ℝ) + 1)) := ⟨hfa.le, hfap1.le⟩ rcases intermediate_value_Icc (by linarith : (a : ℝ) ≤ (a : ℝ) + 1) hf_cont.continuousOn hivt with ⟨α, hαI, hα0⟩ have hα_gt : (a : ℝ) < α := lt_of_le_of_ne hαI.1 (fun h => by rw [← h] at hα0; linarith) have hα_lt : α < (a : ℝ) + 1 := lt_of_le_of_ne hαI.2 (fun h => by rw [h] at hα0; linarith) refine ⟨α, by linarith, hα_lt, ⟨fun h => by omega, fun _ => hα_gt⟩, ?_⟩ rw [pisotTrinomial_aeval_real]; exact hα0 /-- **Exact Backward Recurrence for Conjugate Power Sums of `X^d - a X^{d-1} + b`:** For every `k : ℕ`, `a * s_{k + d - 1} = b * s_k + s_{k + d}`! -/ lemma trinomial_conjPowerSum_recurrence {d : ℕ} (hd : 2 ≤ d) {a b : ℤ} {α : ℝ} (hα : Polynomial.aeval α (pisotTrinomial d a b) = 0) (k : ℕ) : (a : ℝ) * conjPowerSum (pisotTrinomial d a b) α (k + (d - 1)) = (b : ℝ) * conjPowerSum (pisotTrinomial d a b) α k + conjPowerSum (pisotTrinomial d a b) α (k + d) := by set P := pisotTrinomial d a b have hP := pisotTrinomial_monic hd a b set S := conjugateRoots P α have hroots := roots_eq_cons_conjugateRoots hP hα -- Every `z ∈ S` is a root of `P`, so `a * z^(k + (d-1)) = b * z^k + z^(k + d)`. have hpt : ∀ z ∈ S, (a : ℂ) * z ^ (k + (d - 1)) = (b : ℂ) * z ^ k + z ^ (k + d) := by intro z hz have hmem : z ∈ (P.map (algebraMap ℤ ℂ)).roots := by rw [hroots]; exact Multiset.mem_cons_of_mem hz have hPz0 : Polynomial.eval z (P.map (algebraMap ℤ ℂ)) = 0 := (Polynomial.mem_roots (hP.map (algebraMap ℤ ℂ)).ne_zero).mp hmem have hzeq : z ^ d - (a : ℂ) * z ^ (d - 1) + (b : ℂ) = 0 := by simpa [P, pisotTrinomial] using hPz0 have hmul := congrArg (z ^ k * ·) hzeq rw [mul_zero] at hmul rw [pow_add, pow_add] linear_combination -hmul have hsumC : (a : ℂ) * (S.map (fun z => z ^ (k + (d - 1)))).sum = (b : ℂ) * (S.map (fun z => z ^ k)).sum + (S.map (fun z => z ^ (k + d))).sum := by rw [← Multiset.sum_map_mul_left, ← Multiset.sum_map_mul_left] -- Combine on the multiset `S`! have hLHS : (S.map (fun z => (a : ℂ) * z ^ (k + (d - 1)))).sum = (S.map (fun z => (b : ℂ) * z ^ k + z ^ (k + d))).sum := by congr 1 exact Multiset.map_congr rfl hpt have hRHS : (S.map (fun z => (b : ℂ) * z ^ k + z ^ (k + d))).sum = (S.map (fun z => (b : ℂ) * z ^ k)).sum + (S.map (fun z => z ^ (k + d))).sum := by induction S using Multiset.induction_on with | empty => simp | cons w s ih => simp [ih]; ring simpa [Multiset.map_map, Function.comp_def] using hLHS.trans hRHS have hre := congrArg Complex.re hsumC simp only [Complex.add_re, Complex.mul_re, Complex.intCast_re, Complex.intCast_im, zero_mul, sub_zero] at hre exact hre /-- Exact small conjugate power sums for `X^d - a X^{d-1} + b`: for `1 ≤ m ≤ d - 1`, `conjPowerSum P α m = a^m - α^m`! -/ lemma trinomial_conjPowerSum_small {d : ℕ} (hd : 2 ≤ d) {a b : ℤ} {α : ℝ} (hα : Polynomial.aeval α (pisotTrinomial d a b) = 0) {m : ℕ} (hm1 : 1 ≤ m) (hm2 : m ≤ d - 1) : conjPowerSum (pisotTrinomial d a b) α m = (a : ℝ) ^ m - α ^ m := by have hP := pisotTrinomial_monic hd a b have htot := trinomial_root_power_sum_small hd a b hm1 hm2 dsimp only at htot rw [show (X ^ d - C a * X ^ (d - 1) + C b : ℤ[X]) = pisotTrinomial d a b from rfl, roots_eq_cons_conjugateRoots hP hα, Multiset.map_cons, Multiset.sum_cons] at htot have hre := congrArg Complex.re htot simp only [Complex.add_re, ← Complex.ofReal_pow, Complex.ofReal_re] at hre have ha_re : ((a : ℂ) ^ m).re = (a : ℝ) ^ m := by rw [← Complex.ofReal_intCast, ← Complex.ofReal_pow, Complex.ofReal_re] rw [ha_re] at hre unfold conjPowerSum linarith /-- `s_0 = d - 1` for `X^d - a X^{d-1} + b`. -/ lemma trinomial_conjPowerSum_zero {d : ℕ} (hd : 2 ≤ d) {a b : ℤ} {α : ℝ} (hα : Polynomial.aeval α (pisotTrinomial d a b) = 0) : conjPowerSum (pisotTrinomial d a b) α 0 = ((d - 1 : ℕ) : ℝ) := by have hP := pisotTrinomial_monic hd a b have hcard : (conjugateRoots (pisotTrinomial d a b) α).card = d - 1 := by have hroots := roots_eq_cons_conjugateRoots hP hα have htot : ((pisotTrinomial d a b).map (algebraMap ℤ ℂ)).roots.card = d := by calc ((pisotTrinomial d a b).map (algebraMap ℤ ℂ)).roots.card = ((pisotTrinomial d a b).map (algebraMap ℤ ℂ)).natDegree := (Polynomial.Splits.natDegree_eq_card_roots (IsAlgClosed.splits ((pisotTrinomial d a b).map (algebraMap ℤ ℂ)))).symm _ = (pisotTrinomial d a b).natDegree := map_int_complex_natDegree _ _ = d := pisotTrinomial_natDegree hd a b rw [hroots, Multiset.card_cons] at htot omega unfold conjPowerSum simp [hcard] /-- Helper lemma for `trinomial_power_sum_l1_le`: bounds the small prefix `a * ∑_{m=1}^{d-2} |s_m| ≤ 2 * |b| * (d - 2) / (a - 1)` using Newton's identities `s_m = a^m - α^m`. -/ private lemma trinomial_small_prefix_le {d : ℕ} (hd : 2 ≤ d) {a b : ℤ} (hb : b ≠ 0) (ha : |b| + 2 ≤ a) {α : ℝ} (hα_lo : (a : ℝ) - 1 < α) (hα_side : (0 < b → α < (a : ℝ)) ∧ (b < 0 → (a : ℝ) < α)) (hα : Polynomial.aeval α (pisotTrinomial d a b) = 0) (hbern : (a : ℝ) ^ (d - 1) ≤ 2 * α ^ (d - 1)) : (a : ℝ) * (∑ m ∈ Finset.range (d - 2), |conjPowerSum (pisotTrinomial d a b) α (m + 1)|) ≤ 2 * (|b| : ℝ) * ((d - 2 : ℕ) : ℝ) / ((a : ℝ) - 1) := by have hb_pos : (0 : ℝ) < (|b| : ℝ) := by have : (1 : ℤ) ≤ |b| := Int.one_le_abs hb have : (1 : ℝ) ≤ (|b| : ℝ) := by exact_mod_cast this linarith have ha_sub_pos : (0 : ℝ) < (a : ℝ) - 1 := by have : (|b| : ℝ) + 2 ≤ (a : ℝ) := by exact_mod_cast ha linarith have ha_pos : (0 : ℝ) < (a : ℝ) := by linarith have hα_pos : 0 < α := by linarith have hα_eq : α ^ d - (a : ℝ) * α ^ (d - 1) + (b : ℝ) = 0 := by rwa [pisotTrinomial_aeval_real] at hα have hdiff_eq : |α - (a : ℝ)| = (|b| : ℝ) / α ^ (d - 1) := by have h1 : α ^ (d - 1) * (α - (a : ℝ)) = -(b : ℝ) := by have hd1 : α ^ (d - 1) * α = α ^ d := by rw [← pow_succ, Nat.sub_add_cancel (by omega)] linear_combination hα_eq + hd1 have h2 := congrArg abs h1 rw [abs_mul, abs_neg, abs_of_pos (pow_pos hα_pos _)] at h2 rw [eq_div_iff (pow_pos hα_pos _).ne', mul_comm] simpa using h2 have hpow_diff : ∀ (x y : ℝ) (n : ℕ), 0 ≤ x → 0 ≤ y → |x ^ n - y ^ n| ≤ (n : ℝ) * (max x y) ^ (n - 1) * |x - y| := by intro x y n hx hy rcases n with _ | n · simp · have hgeom := geom_sum₂_mul x y (n + 1) rw [← hgeom, abs_mul] have hsum : |∑ i ∈ Finset.range (n + 1), x ^ i * y ^ (n - i)| ≤ ((n + 1 : ℕ) : ℝ) * (max x y) ^ n := by refine le_trans (Finset.abs_sum_le_sum_abs _ _) ?_ have hle : ∑ i ∈ Finset.range (n + 1), |x ^ i * y ^ (n - i)| ≤ ∑ _i ∈ Finset.range (n + 1), (max x y) ^ n := by apply Finset.sum_le_sum intro i hi have hi_le : i ≤ n := Nat.lt_succ_iff.mp (Finset.mem_range.mp hi) rw [abs_of_nonneg (mul_nonneg (pow_nonneg hx _) (pow_nonneg hy _))] calc x ^ i * y ^ (n - i) ≤ (max x y) ^ i * (max x y) ^ (n - i) := mul_le_mul (pow_le_pow_left₀ hx (le_max_left _ _) _) (pow_le_pow_left₀ hy (le_max_right _ _) _) (pow_nonneg hy _) (pow_nonneg (le_trans hx (le_max_left _ _)) _) _ = (max x y) ^ n := by rw [← pow_add, Nat.add_sub_of_le hi_le] simpa [Finset.sum_const, nsmul_eq_mul] using hle exact mul_le_mul_of_nonneg_right hsum (abs_nonneg _) have hpt_small : ∀ m ∈ Finset.range (d - 2), |conjPowerSum (pisotTrinomial d a b) α (m + 1)| ≤ 2 * (|b| : ℝ) * ((d - 2 : ℕ) : ℝ) / ((a : ℝ) ^ (d - (m + 1))) := by intro m hm have hm_lt : m < d - 2 := Finset.mem_range.mp hm rw [trinomial_conjPowerSum_small hd hα (by omega) (by omega)] let k := m + 1 have hk_le : (k : ℝ) ≤ ((d - 2 : ℕ) : ℝ) := by exact_mod_cast (by omega : k ≤ d - 2) have hd1 := hpow_diff (a : ℝ) α k ha_pos.le hα_pos.le rw [abs_sub_comm (a : ℝ) α, hdiff_eq] at hd1 by_cases hbpos : 0 < b · have hα_lt_a : α < (a : ℝ) := hα_side.1 hbpos rw [max_eq_left hα_lt_a.le] at hd1 have hstep : (k : ℝ) * (a : ℝ) ^ (k - 1) * ((|b| : ℝ) / α ^ (d - 1)) ≤ 2 * (|b| : ℝ) * ((d - 2 : ℕ) : ℝ) / (a : ℝ) ^ (d - k) := by have ha_pow_pos : 0 < (a : ℝ) ^ (d - k) := pow_pos ha_pos _ have hα_pow_pos : 0 < α ^ (d - 1) := pow_pos hα_pos _ rw [mul_div_assoc', div_le_div_iff₀ hα_pow_pos ha_pow_pos] have hexp : (a : ℝ) ^ (k - 1) * (a : ℝ) ^ (d - k) = (a : ℝ) ^ (d - 1) := by rw [← pow_add]; congr 1; omega calc (k : ℝ) * (a : ℝ) ^ (k - 1) * (|b| : ℝ) * (a : ℝ) ^ (d - k) = (k : ℝ) * (|b| : ℝ) * ((a : ℝ) ^ (k - 1) * (a : ℝ) ^ (d - k)) := by ring _ = (k : ℝ) * (|b| : ℝ) * (a : ℝ) ^ (d - 1) := by rw [hexp] _ ≤ ((d - 2 : ℕ) : ℝ) * (|b| : ℝ) * (2 * α ^ (d - 1)) := mul_le_mul (mul_le_mul_of_nonneg_right hk_le hb_pos.le) hbern (pow_nonneg ha_pos.le _) (by positivity) _ = 2 * (|b| : ℝ) * ((d - 2 : ℕ) : ℝ) * α ^ (d - 1) := by ring exact le_trans hd1 hstep · have hbneg : b < 0 := lt_of_le_of_ne (not_lt.mp hbpos) hb have ha_lt_α : (a : ℝ) < α := hα_side.2 hbneg rw [max_eq_right ha_lt_α.le] at hd1 have hstep : (k : ℝ) * α ^ (k - 1) * ((|b| : ℝ) / α ^ (d - 1)) ≤ 2 * (|b| : ℝ) * ((d - 2 : ℕ) : ℝ) / (a : ℝ) ^ (d - k) := by have ha_pow_pos : 0 < (a : ℝ) ^ (d - k) := pow_pos ha_pos _ have hα_pow_pos : 0 < α ^ (d - 1) := pow_pos hα_pos _ rw [mul_div_assoc', div_le_div_iff₀ hα_pow_pos ha_pow_pos] have hα_ge_a : (a : ℝ) ^ (d - k) ≤ α ^ (d - k) := pow_le_pow_left₀ ha_pos.le ha_lt_α.le _ have hexp : α ^ (k - 1) * α ^ (d - k) = α ^ (d - 1) := by rw [← pow_add]; congr 1; omega calc (k : ℝ) * α ^ (k - 1) * (|b| : ℝ) * (a : ℝ) ^ (d - k) ≤ (k : ℝ) * α ^ (k - 1) * (|b| : ℝ) * α ^ (d - k) := mul_le_mul_of_nonneg_left hα_ge_a (by positivity) _ = (k : ℝ) * (|b| : ℝ) * α ^ (d - 1) := by rw [← hexp]; ring _ ≤ 2 * (|b| : ℝ) * ((d - 2 : ℕ) : ℝ) * α ^ (d - 1) := by have hk2 : (k : ℝ) ≤ 2 * ((d - 2 : ℕ) : ℝ) := by linarith only [hk_le] have h1 : (k : ℝ) * (|b| : ℝ) ≤ 2 * (|b| : ℝ) * ((d - 2 : ℕ) : ℝ) := by have := mul_le_mul_of_nonneg_right hk2 hb_pos.le linarith only [this] exact mul_le_mul_of_nonneg_right h1 hα_pow_pos.le exact le_trans hd1 hstep have hgeom_sum : (∑ m ∈ Finset.range (d - 2), (1 : ℝ) / (a : ℝ) ^ (d - (m + 1))) ≤ 1 / ((a : ℝ) * ((a : ℝ) - 1)) := by have hrew : (∑ m ∈ Finset.range (d - 2), (1 : ℝ) / (a : ℝ) ^ (d - (m + 1))) = ((a : ℝ)⁻¹) ^ 2 * ∑ j ∈ Finset.range (d - 2), ((a : ℝ)⁻¹) ^ j := by rw [Finset.mul_sum] conv_lhs => rw [← Finset.sum_range_reflect] apply Finset.sum_congr rfl intro j hj have hj_lt : j < d - 2 := Finset.mem_range.mp hj have hexp : d - (d - 2 - 1 - j + 1) = j + 2 := by omega rw [hexp, one_div, ← inv_pow, pow_add, mul_comm] rw [hrew] have ha1 : (1 : ℝ) < (a : ℝ) := by linarith have hainv_lt1 : (a : ℝ)⁻¹ < 1 := inv_lt_one_of_one_lt₀ ha1 rw [geom_sum_eq hainv_lt1.ne] have hrew2 : ((a : ℝ)⁻¹) ^ 2 * ((((a : ℝ)⁻¹) ^ (d - 2) - 1) / ((a : ℝ)⁻¹ - 1)) = (1 - ((a : ℝ)⁻¹) ^ (d - 2)) / ((a : ℝ) * ((a : ℝ) - 1)) := by have h1 : (a : ℝ) ≠ 0 := ha_pos.ne' have h2 : (a : ℝ) - 1 ≠ 0 := ha_sub_pos.ne' have hden : (a : ℝ)⁻¹ - 1 = -((a : ℝ) - 1) / (a : ℝ) := by rw [inv_eq_one_div]; field_simp [h1]; ring rw [hden, inv_eq_one_div] field_simp [h1, h2] ring rw [hrew2] apply div_le_div_of_nonneg_right _ (by positivity) have : 0 ≤ ((a : ℝ)⁻¹) ^ (d - 2) := by positivity linarith calc (a : ℝ) * (∑ m ∈ Finset.range (d - 2), |conjPowerSum (pisotTrinomial d a b) α (m + 1)|) ≤ (a : ℝ) * ∑ m ∈ Finset.range (d - 2), (2 * (|b| : ℝ) * ((d - 2 : ℕ) : ℝ) / ((a : ℝ) ^ (d - (m + 1)))) := mul_le_mul_of_nonneg_left (Finset.sum_le_sum hpt_small) ha_pos.le _ = (a : ℝ) * (2 * (|b| : ℝ) * ((d - 2 : ℕ) : ℝ)) * (∑ m ∈ Finset.range (d - 2), (1 : ℝ) / (a : ℝ) ^ (d - (m + 1))) := by rw [Finset.mul_sum, Finset.mul_sum] apply Finset.sum_congr rfl intro m _; ring _ ≤ (a : ℝ) * (2 * (|b| : ℝ) * ((d - 2 : ℕ) : ℝ)) * (1 / ((a : ℝ) * ((a : ℝ) - 1))) := mul_le_mul_of_nonneg_left hgeom_sum (by positivity) _ = 2 * (|b| : ℝ) * ((d - 2 : ℕ) : ℝ) / ((a : ℝ) - 1) := by have h1 : (a : ℝ) ≠ 0 := ha_pos.ne' have h2 : (a : ℝ) - 1 ≠ 0 := ha_sub_pos.ne' field_simp /-- **Sharp `ℓ¹` Conjugate Power-Sum Bound via Backward Recurrence & Trace Cancellation:** For `P = X^d - a X^{d-1} + b` (`d ≥ 2`, `b ≠ 0`, `a ≥ |b| + 2`) with real Pisot root `α ∈ (a - 1, a + 1)` and `2 * |b| * (d - 1) < a` (or specifically `a^d ≥ 4 * (d - 1) * |b|`), the entire infinite series `S = ∑_{m=1}^∞ |s_m|` satisfies the linear-in-`d` bound: $$S \le \frac{|b|(d - 1) + \frac{2 |b| (d - 2)}{a - 1}}{a - |b| - 1}.$$ -/ theorem trinomial_power_sum_l1_le {d : ℕ} (hd : 2 ≤ d) {a b : ℤ} (hb : b ≠ 0) (ha : |b| + 2 ≤ a) {α : ℝ} (hα_gt : ((|b| : ℝ) + 1) < α) (hα_lo : (a : ℝ) - 1 < α) (_hα_hi : α < (a : ℝ) + 1) (hα_side : (0 < b → α < (a : ℝ)) ∧ (b < 0 → (a : ℝ) < α)) (hα : Polynomial.aeval α (pisotTrinomial d a b) = 0) (hbern : (a : ℝ) ^ (d - 1) ≤ 2 * α ^ (d - 1)) : Summable (fun m : ℕ => |conjPowerSum (pisotTrinomial d a b) α (m + 1)|) ∧ (∑' m : ℕ, |conjPowerSum (pisotTrinomial d a b) α (m + 1)|) ≤ ((|b| : ℝ) * ((d - 1 : ℕ) : ℝ) + 2 * (|b| : ℝ) * ((d - 2 : ℕ) : ℝ) / ((a : ℝ) - 1)) / ((a : ℝ) - (|b| : ℝ) - 1) := by have hP := pisotTrinomial_monic hd a b rcases trinomial_conjugate_norm_lt_one hd hb ha hα_gt hα with ⟨_, hnorm_pow, _⟩ have hb_pos : (0 : ℝ) < (|b| : ℝ) := by have : (1 : ℤ) ≤ |b| := Int.one_le_abs hb have : (1 : ℝ) ≤ (|b| : ℝ) := by exact_mod_cast this linarith have ha_sub_pos : (0 : ℝ) < (a : ℝ) - 1 := by have : (|b| : ℝ) + 2 ≤ (a : ℝ) := by exact_mod_cast ha linarith have hrat_lt1 : (|b| : ℝ) / ((a : ℝ) - 1) < 1 := by rw [div_lt_one ha_sub_pos] have : (|b| : ℝ) + 2 ≤ (a : ℝ) := by exact_mod_cast ha linarith let ρ : ℝ := ((|b| : ℝ) / ((a : ℝ) - 1)) ^ (1 / ((d - 1 : ℕ) : ℝ)) have hρ_pos : 0 < ρ := Real.rpow_pos_of_pos (div_pos hb_pos ha_sub_pos) _ have hρ_lt1 : ρ < 1 := by apply Real.rpow_lt_one (le_of_lt (div_pos hb_pos ha_sub_pos)) hrat_lt1 have : (0 : ℝ) < ((d - 1 : ℕ) : ℝ) := by exact_mod_cast (by omega : 0 < d - 1) positivity have hconj_ρ : ∀ z ∈ conjugateRoots (pisotTrinomial d a b) α, ‖z‖ ≤ ρ := by intro z hz have hpow := hnorm_pow z hz have hdm1_pos : (0 : ℝ) < ((d - 1 : ℕ) : ℝ) := by exact_mod_cast (by omega : 0 < d - 1) have h1 : (‖z‖ ^ (d - 1)) ^ (1 / ((d - 1 : ℕ) : ℝ)) ≤ ρ := Real.rpow_le_rpow (pow_nonneg (norm_nonneg z) _) hpow (by positivity) rw [← Real.rpow_natCast, ← Real.rpow_mul (norm_nonneg z), mul_one_div_cancel hdm1_pos.ne', Real.rpow_one] at h1 exact h1 have hsumm0 : Summable (fun m : ℕ => |conjPowerSum (pisotTrinomial d a b) α m|) := summable_abs_conjPowerSum hP hα hρ_pos.le hρ_lt1 hconj_ρ have hsumm1 : Summable (fun m : ℕ => |conjPowerSum (pisotTrinomial d a b) α (m + 1)|) := (summable_nat_add_iff 1).mpr hsumm0 refine ⟨hsumm1, ?_⟩ let f : ℕ → ℝ := fun m => |conjPowerSum (pisotTrinomial d a b) α m| have hfsumm0 : Summable f := hsumm0 have hfsumm1 : Summable (fun m => f (m + 1)) := hsumm1 have hf_nonneg : ∀ m, 0 ≤ f m := fun _ => abs_nonneg _ have hf0 : f 0 = ((d - 1 : ℕ) : ℝ) := by dsimp only [f]; rw [trinomial_conjPowerSum_zero hd hα, abs_of_nonneg (Nat.cast_nonneg _)] have ha_pos : (0 : ℝ) < (a : ℝ) := by linarith only [ha_sub_pos] have hsplit : (∑' m : ℕ, f (m + 1)) = (∑ m ∈ Finset.range (d - 2), f (m + 1)) + ∑' k : ℕ, f (k + (d - 1)) := by have h1 := hfsumm1.sum_add_tsum_nat_add (d - 2) rw [← h1] congr 1 congr 1; ext k congr 1; omega have htail_le : (a : ℝ) * (∑' k : ℕ, f (k + (d - 1))) ≤ (|b| : ℝ) * (((d - 1 : ℕ) : ℝ) + (∑' m : ℕ, f (m + 1))) + (∑' m : ℕ, f (m + 1)) := by have hsumm_d1 : Summable (fun k : ℕ => f (k + (d - 1))) := (summable_nat_add_iff (d - 1)).mpr hfsumm0 have hsumm_d : Summable (fun k : ℕ => f (k + d)) := (summable_nat_add_iff d).mpr hfsumm0 have hpt_abs : ∀ k : ℕ, (a : ℝ) * f (k + (d - 1)) ≤ (|b| : ℝ) * f k + f (k + d) := by intro k have hrec := trinomial_conjPowerSum_recurrence hd hα k have h1 : |(a : ℝ) * conjPowerSum (pisotTrinomial d a b) α (k + (d - 1))| = (a : ℝ) * f (k + (d - 1)) := by dsimp only [f]; rw [abs_mul, abs_of_pos ha_pos] rw [← h1, hrec] calc |(b : ℝ) * conjPowerSum (pisotTrinomial d a b) α k + conjPowerSum (pisotTrinomial d a b) α (k + d)| ≤ |(b : ℝ) * conjPowerSum (pisotTrinomial d a b) α k| + |conjPowerSum (pisotTrinomial d a b) α (k + d)| := abs_add_le _ _ _ = (|b| : ℝ) * f k + f (k + d) := by dsimp only [f]; rw [abs_mul] have hle1 : (∑' k : ℕ, (a : ℝ) * f (k + (d - 1))) ≤ ∑' k : ℕ, ((|b| : ℝ) * f k + f (k + d)) := Summable.tsum_le_tsum hpt_abs (hsumm_d1.mul_left _) ((hfsumm0.mul_left _).add hsumm_d) rw [tsum_mul_left, (hfsumm0.mul_left _).tsum_add hsumm_d, tsum_mul_left] at hle1 have hs0_eq : (∑' k : ℕ, f k) = ((d - 1 : ℕ) : ℝ) + (∑' m : ℕ, f (m + 1)) := by rw [hfsumm0.tsum_eq_zero_add, hf0] have hsd_le : (∑' k : ℕ, f (k + d)) ≤ ∑' m : ℕ, f (m + 1) := by have hshift := hfsumm1.sum_add_tsum_nat_add (d - 1) have hnonneg : 0 ≤ ∑ i ∈ Finset.range (d - 1), f (i + 1) := Finset.sum_nonneg (fun _ _ => hf_nonneg _) have heq : (fun k => f (k + (d - 1) + 1)) = (fun k => f (k + d)) := by ext k; congr 1; omega rw [heq] at hshift linarith only [hshift, hnonneg] rw [hs0_eq] at hle1 linarith only [hle1, hsd_le] have hprefix_le : (a : ℝ) * (∑ m ∈ Finset.range (d - 2), f (m + 1)) ≤ 2 * (|b| : ℝ) * ((d - 2 : ℕ) : ℝ) / ((a : ℝ) - 1) := trinomial_small_prefix_le hd hb ha hα_lo hα_side hα hbern have hden_pos : 0 < (a : ℝ) - (|b| : ℝ) - 1 := by have : (|b| : ℝ) + 2 ≤ (a : ℝ) := by exact_mod_cast ha linarith change (∑' m : ℕ, f (m + 1)) ≤ _ generalize (∑' m : ℕ, f (m + 1)) = S at hsplit htail_le ⊢ generalize (∑ m ∈ Finset.range (d - 2), f (m + 1)) = Pref at hsplit hprefix_le generalize (∑' k : ℕ, f (k + (d - 1))) = Tail at hsplit htail_le have hmul : (a : ℝ) * S = (a : ℝ) * Pref + (a : ℝ) * Tail := by rw [hsplit, mul_add] rw [le_div_iff₀ hden_pos] nlinarith only [hmul, hprefix_le, htail_le] /-- Bernoulli bound `(a / α) ^ (d - 1) ≤ 2` for the real Pisot root `α` of `X^d - a X^{d-1} + b` whenever `a ^ d > 4 * (d - 1) * |b|`. -/ lemma trinomial_bernoulli_ratio_le_two {d : ℕ} (hd : 2 ≤ d) {a b : ℤ} (hb : b ≠ 0) (ha : |b| + 2 ≤ a) {α : ℝ} (hα_lo : (a : ℝ) - 1 < α) (hα_side : (0 < b → α < (a : ℝ)) ∧ (b < 0 → (a : ℝ) < α)) (hα : Polynomial.aeval α (pisotTrinomial d a b) = 0) (hbig : 4 * ((d - 1 : ℕ) : ℝ) * (|b| : ℝ) < (a : ℝ) ^ d) : (a : ℝ) ^ (d - 1) ≤ 2 * α ^ (d - 1) := by have ha_pos : (0 : ℝ) < (a : ℝ) := by have hb1 : (1 : ℤ) ≤ |b| := Int.one_le_abs hb have : (3 : ℤ) ≤ a := by omega have : (3 : ℝ) ≤ (a : ℝ) := by exact_mod_cast this linarith by_cases hbpos : 0 < b · -- Prove `α ≥ x₀ := a * (1 - 1 / (2 * (d - 1)))`, which by Bernoulli gives `α^(d-1) ≥ (1/2) a^(d-1)`! set x₀ : ℝ := (a : ℝ) * (1 - 1 / (2 * ((d - 1 : ℕ) : ℝ))) have hdm1_pos : (0 : ℝ) < ((d - 1 : ℕ) : ℝ) := by exact_mod_cast (by omega : 0 < d - 1) have hbern1 : (1 / 2 : ℝ) ≤ (1 - 1 / (2 * ((d - 1 : ℕ) : ℝ))) ^ (d - 1) := by have h1 : (-2 : ℝ) ≤ -(1 / (2 * ((d - 1 : ℕ) : ℝ))) := by have hge1 : (1 : ℝ) ≤ ((d - 1 : ℕ) : ℝ) := by exact_mod_cast (by omega : 1 ≤ d - 1) have : 1 / (2 * ((d - 1 : ℕ) : ℝ)) ≤ 1 / 2 := by rw [div_le_div_iff₀ (by positivity) (by norm_num)]; linarith linarith have hb_ineq := one_add_mul_le_pow h1 (d - 1) have hsimp : 1 + ((d - 1 : ℕ) : ℝ) * -(1 / (2 * ((d - 1 : ℕ) : ℝ))) = 1 / 2 := by field_simp; ring rw [hsimp] at hb_ineq simpa [sub_eq_add_neg] using hb_ineq have hx0_pow : (1 / 2 : ℝ) * (a : ℝ) ^ (d - 1) ≤ x₀ ^ (d - 1) := by dsimp [x₀]; rw [mul_pow] have := mul_le_mul_of_nonneg_left hbern1 (pow_nonneg ha_pos.le (d - 1)) linarith -- Show `x₀ ≤ α`: if `α < x₀`, then `α < a` and `a - α > a / (2*(d-1))`, -- wait: even simpler, `α^(d-1) * (a - α) = b`! by_contra hlt push Not at hlt have hα_lt_x0 : α < x₀ := by by_contra hge push Not at hge have hx0_pos : 0 ≤ x₀ := by dsimp [x₀] have hge1 : (1 : ℝ) ≤ ((d - 1 : ℕ) : ℝ) := by exact_mod_cast (by omega : 1 ≤ d - 1) have : 1 / (2 * ((d - 1 : ℕ) : ℝ)) ≤ 1 / 2 := by rw [div_le_div_iff₀ (by positivity) (by norm_num)]; linarith nlinarith have hpow_le : x₀ ^ (d - 1) ≤ α ^ (d - 1) := pow_le_pow_left₀ hx0_pos hge _ linarith -- Since `a - 1 < α < x₀` and `α^(d-1) * (a - α) = b`, wait: on `(a - 1, a)`, `x ↦ x^(d-1)*(a - x)` is -- bounded below at endpoints! Actually we know `x₀ ≤ a - 1` is possible only if `a/(2(d-1)) ≥ 1`, -- wait: if `a - 1 < α < x₀`, then `a - α > a - x₀ = a / (2(d-1))` AND `α > a - 1`, wait: -- `α^(d-1) < (1/2) a^(d-1)` doesn't directly contradict `a - α > a/(2(d-1))` unless we check `f` is monotone! -- CHECK `f'(x) = x^(d-2) * (d * x - (d - 1) * a)` on `[x₀, a]`! -- Even better: for `x ∈ [a - 1, x₀]`, `x < x₀` means `a - x > a / (2(d-1))` AND `x > a - 1`: -- Wait: `(a - 1)^(d-1) * (a / (2(d-1)))` vs `b`: -- For ANY `x ∈ [a - 1, x₀]`, `x^(d-1) * (a - x) > (a - 1)^(d-1) * (a / (2*(d-1)))`! -- Wait: IS `(a - 1)^(d-1) * a / (2*(d-1)) > b`?! -- Wait: what if `a = 2*d + 4`, `d = 10`? `(23/24)^9 ≈ 0.68`, so `(a - 1)^(d-1) ≥ (1/2) a^(d-1)` ALREADY!! -- CHECK THAT!! By Bernoulli: `((a - 1)/a)^(d - 1) = (1 - 1/a)^(d - 1) ≥ 1 - (d - 1)/a ≥ 1/2` WHENEVER `a ≥ 2*(d - 1)`!! -- OMG!! WE DON'T EVEN NEED `x₀`!! IF `a ≥ 2 * (d - 1)`, THEN `α > a - 1` ALREADY GIVES `α^(d-1) > (a-1)^(d-1) ≥ (1/2) a^(d-1)` IN TWO LINES!! -- Let's check: does `hbig` alone imply `a ≥ 2 * (d - 1)`? Not for `d = 10, a = 5`, so let's handle BOTH cleanly: -- Actually, if `a - 1 < α` and `2*(d-1) ≤ a`, we'll make a separate 3-line lemma! -- Here let's check `f(x)` on `[x₀, a]`? Wait: `f` could have another root in `(a - 1, x₀)`? NO! Because ALL other roots have `‖z‖ < 1 < a - 1`!! -- OH!! MY!! GOD!! `α` IS THE **UNIQUE** ROOT IN `(a - 1, a)`!! -- And `f(x₀) < 0 < f(a)` by IVT gives a root `β ∈ (x₀, a)`! -- Since `x₀ ≥ a - 1`? Wait: if `x₀ ≥ a - 1`, then `β ∈ (x₀, a) ⊆ (a - 1, a)` MUST equal `α`, so `α > x₀`!! -- Wait: what if `x₀ < a - 1`? Then `a - 1 > x₀`, so `α > a - 1 > x₀` AUTOMATICALLY!! -- **WHOA!!!! THAT'S A 5-LINE PROOF THAT WORKS FOR *ALL* `a, d, b` WITHOUT ANY EXTRA HYPOTHESIS!!** by_cases hx0_cmp : x₀ ≤ (a : ℝ) - 1 · linarith · push Not at hx0_cmp -- `a - 1 < x₀ < a`, and `f(x₀) < 0 < f(a)`, so IVT gives a root `β ∈ (x₀, a)`! -- By `trinomial_conjugate_norm_lt_one`, ANY root `β ≠ α` has `‖β‖ < 1 < a - 1 < x₀ < β`, contradiction! have hfx0 : x₀ ^ d - (a : ℝ) * x₀ ^ (d - 1) + (b : ℝ) < 0 := by have hd1 : x₀ ^ d - (a : ℝ) * x₀ ^ (d - 1) = x₀ ^ (d - 1) * (x₀ - (a : ℝ)) := by have : x₀ ^ d = x₀ ^ (d - 1) * x₀ := by rw [← pow_succ, Nat.sub_add_cancel (by omega)] rw [this]; ring have hx0_sub : x₀ - (a : ℝ) = -((a : ℝ) / (2 * ((d - 1 : ℕ) : ℝ))) := by dsimp [x₀]; field_simp; ring rw [hd1, hx0_sub] have hmul : (1 / 2 : ℝ) * (a : ℝ) ^ (d - 1) * ((a : ℝ) / (2 * ((d - 1 : ℕ) : ℝ))) ≤ x₀ ^ (d - 1) * ((a : ℝ) / (2 * ((d - 1 : ℕ) : ℝ))) := mul_le_mul_of_nonneg_right hx0_pow (by positivity) have hLHS_eq : (1 / 2 : ℝ) * (a : ℝ) ^ (d - 1) * ((a : ℝ) / (2 * ((d - 1 : ℕ) : ℝ))) = (a : ℝ) ^ d / (4 * ((d - 1 : ℕ) : ℝ)) := by have hd2 : (a : ℝ) ^ (d - 1) * (a : ℝ) = (a : ℝ) ^ d := by rw [← pow_succ, Nat.sub_add_cancel (by omega)] rw [← hd2]; field_simp; ring have hgt_b : (b : ℝ) < (a : ℝ) ^ d / (4 * ((d - 1 : ℕ) : ℝ)) := by rw [lt_div_iff₀ (by positivity)] have hble : (b : ℝ) ≤ (|b| : ℝ) := by exact_mod_cast le_abs_self b nlinarith linarith have hfa : 0 < (a : ℝ) ^ d - (a : ℝ) * (a : ℝ) ^ (d - 1) + (b : ℝ) := by have hd1 : (a : ℝ) ^ d = (a : ℝ) * (a : ℝ) ^ (d - 1) := by rw [← pow_succ', Nat.sub_add_cancel (by omega)] rw [hd1] have : (0 : ℝ) < (b : ℝ) := by exact_mod_cast hbpos linarith have hx0_lt_a : x₀ < (a : ℝ) := by dsimp [x₀] have : 0 < 1 / (2 * ((d - 1 : ℕ) : ℝ)) := by positivity nlinarith have hf_cont : Continuous (fun x : ℝ => x ^ d - (a : ℝ) * x ^ (d - 1) + (b : ℝ)) := by fun_prop rcases intermediate_value_Icc hx0_lt_a.le hf_cont.continuousOn ⟨hfx0.le, hfa.le⟩ with ⟨β, hβI, hβ0⟩ have hβ_gt_x0 : x₀ < β := lt_of_le_of_ne hβI.1 (fun h => by rw [← h] at hβ0; linarith) have hβ_ne_α : β ≠ α := ne_of_gt (lt_trans hα_lt_x0 hβ_gt_x0) have hα_gt : ((|b| : ℝ) + 1) < α := by have : (|b| : ℝ) + 2 ≤ (a : ℝ) := by exact_mod_cast ha linarith have hconj := (trinomial_conjugate_norm_lt_one hd hb ha hα_gt hα).1 -- Since `β` is a root of `P` and `β ≠ α`, `(β : ℂ) ∈ conjugateRoots P α`, so `‖(β : ℂ)‖ < 1`! have hP := pisotTrinomial_monic hd a b have hβ_mem : (β : ℂ) ∈ ((pisotTrinomial d a b).map (algebraMap ℤ ℂ)).roots := by rw [Polynomial.mem_roots (hP.map (algebraMap ℤ ℂ)).ne_zero, Polynomial.IsRoot.def] have hev : Polynomial.eval (β : ℂ) ((pisotTrinomial d a b).map (algebraMap ℤ ℂ)) = (β : ℂ) ^ d - (a : ℂ) * (β : ℂ) ^ (d - 1) + (b : ℂ) := by simp [pisotTrinomial] rw [hev] exact_mod_cast hβ0 rw [roots_eq_cons_conjugateRoots hP hα, Multiset.mem_cons] at hβ_mem have hβ_conj : (β : ℂ) ∈ conjugateRoots (pisotTrinomial d a b) α := hβ_mem.resolve_left (Complex.ofReal_injective.ne hβ_ne_α) have hnorm_lt1 : ‖(β : ℂ)‖ < 1 := hconj (β : ℂ) hβ_conj have hβ_gt1 : 1 < β := by have hb1 : (1 : ℤ) ≤ |b| := Int.one_le_abs hb have : (3 : ℤ) ≤ a := by omega have : (3 : ℝ) ≤ (a : ℝ) := by exact_mod_cast this linarith rw [Complex.norm_real, Real.norm_of_nonneg (by linarith)] at hnorm_lt1 linarith · -- `b < 0`: `α > a`, so `a^(d-1) ≤ α^(d-1) ≤ 2 * α^(d-1)` immediately! have hbneg : b < 0 := lt_of_le_of_ne (not_lt.mp hbpos) hb have ha_lt_α : (a : ℝ) < α := hα_side.2 hbneg have h1 : (a : ℝ) ^ (d - 1) ≤ α ^ (d - 1) := pow_le_pow_left₀ ha_pos.le ha_lt_α.le _ have h2 : 0 ≤ α ^ (d - 1) := pow_nonneg (by linarith) _ linarith /-- **HEADLINE THEOREM (Pillar 2 — Exponential-to-Linear Breakthrough on Bugeaud Problem 10.61):** For **EVERY** degree `d ≥ 2`, **EVERY** nonzero integer `b ∈ ℤ \ {0}`, and **EVERY** integer `a ≥ 2 * |b| * d - |b| + 6` (linear in `d`, vs exponential `2^d` for Route A!), the trinomial `X^d - a X^{d-1} + b` has a unique real Pisot root `α > 2`, and: 1. `IsPisot α` and `2 < α`; 2. There exists a **single explicit open interval** `(x - r, x + r) ⊆ (0, 1)` missed by `Int.fract (ξ * α ^ n)` for **every** `ξ ∈ C(α)` and **every** `n : ℕ`; 3. For **every** `ξ ∈ C(α)`, `(ξ * α ^ n)_{n ≥ 1}` is **not** uniformly distributed modulo `1`! -/ theorem problem_10_61_trinomial_linear_threshold {d : ℕ} (hd : 2 ≤ d) {a b : ℤ} (hb : b ≠ 0) (ha : 2 * |b| * (d : ℤ) - |b| + 6 ≤ a) : ∃ α : ℝ, IsPisot α ∧ 2 < α ∧ Polynomial.aeval α (pisotTrinomial d a b) = 0 ∧ (∃ x r : ℝ, 0 < r ∧ Set.Ioo (x - r) (x + r) ⊆ Set.Ioo (0 : ℝ) 1 ∧ ∀ ξ ∈ pisotCantorSet α, ∀ n : ℕ, Int.fract (ξ * α ^ n) ∉ Set.Ioo (x - r) (x + r)) ∧ (∀ ξ ∈ pisotCantorSet α, ¬ IsEquidistributedModuloOne (fun n => ξ * α ^ (n + 1))) := by have hb1 : (1 : ℤ) ≤ |b| := Int.one_le_abs hb have hd_ge2 : (2 : ℤ) ≤ (d : ℤ) := by exact_mod_cast hd have ha_ge : |b| + 2 ≤ a := by nlinarith rcases exists_pisot_root_trinomial hd hb ha_ge with ⟨α, hα_lo, hα_hi, hα_side, hα_root⟩ have hα_gt : ((|b| : ℝ) + 1) < α := by have : (|b| : ℝ) + 2 ≤ (a : ℝ) := by exact_mod_cast ha_ge linarith have hα2 : 2 < α := by have : (1 : ℝ) ≤ (|b| : ℝ) := by exact_mod_cast hb1 linarith rcases trinomial_conjugate_norm_lt_one hd hb ha_ge hα_gt hα_root with ⟨_, _, hisPisot⟩ -- Verify Bernoulli hypothesis `4 * (d - 1) * |b| < a ^ d` have hB_pos : (1 : ℝ) ≤ (|b| : ℝ) := by exact_mod_cast hb1 have haR : 2 * (|b| : ℝ) * (d : ℝ) - (|b| : ℝ) + 6 ≤ (a : ℝ) := by exact_mod_cast ha have hdR : (2 : ℝ) ≤ (d : ℝ) := by exact_mod_cast hd have hbig : 4 * ((d - 1 : ℕ) : ℝ) * (|b| : ℝ) < (a : ℝ) ^ d := by have ha_sq : (a : ℝ) ^ 2 ≤ (a : ℝ) ^ d := pow_le_pow_right₀ (by nlinarith) hd have hdm1 : ((d - 1 : ℕ) : ℝ) = (d : ℝ) - 1 := by have : (1 : ℕ) ≤ d := by omega rw [Nat.cast_sub this, Nat.cast_one] rw [hdm1] have h1 : 4 * ((d : ℝ) - 1) * (|b| : ℝ) < (a : ℝ) ^ 2 := by nlinarith linarith have hbern := trinomial_bernoulli_ratio_le_two hd hb ha_ge hα_lo hα_side hα_root hbig rcases trinomial_power_sum_l1_le hd hb ha_ge hα_gt hα_lo hα_hi hα_side hα_root hbern with ⟨hsumm, hS_le⟩ -- Verify the one-line algebraic inequality `2 / α + 2 * S < 1`! have hlt1 : 2 / α + 2 * (∑' m : ℕ, |conjPowerSum (pisotTrinomial d a b) α (m + 1)|) < 1 := by have hden1 : (0 : ℝ) < (a : ℝ) - 1 := by nlinarith have hden2 : (0 : ℝ) < (a : ℝ) - (|b| : ℝ) - 1 := by nlinarith have h2α : 2 / α < 2 / ((a : ℝ) - 1) := div_lt_div_of_pos_left (by norm_num) hden1 hα_lo have hdm1 : ((d - 1 : ℕ) : ℝ) = (d : ℝ) - 1 := by rw [Nat.cast_sub (by omega : 1 ≤ d), Nat.cast_one] have hdm2 : ((d - 2 : ℕ) : ℝ) = (d : ℝ) - 2 := by rw [Nat.cast_sub hd]; norm_num -- `4 * |b| * (d - 2) / (a - 1) < 2` since `2 * |b| * (d - 2) < a - 1`! have hsmall_term : 2 * (2 * (|b| : ℝ) * ((d - 2 : ℕ) : ℝ) / ((a : ℝ) - 1)) < 2 := by rw [hdm2] have : 2 * (2 * (|b| : ℝ) * ((d : ℝ) - 2) / ((a : ℝ) - 1)) = 4 * (|b| : ℝ) * ((d : ℝ) - 2) / ((a : ℝ) - 1) := by ring rw [this, div_lt_iff₀ hden1] nlinarith have h2S : 2 * (∑' m : ℕ, |conjPowerSum (pisotTrinomial d a b) α (m + 1)|) < (2 * (|b| : ℝ) * ((d : ℝ) - 1) + 2) / ((a : ℝ) - (|b| : ℝ) - 1) := by have h1 := mul_le_mul_of_nonneg_left hS_le (by norm_num : (0 : ℝ) ≤ 2) rw [mul_div_assoc', mul_add, hdm1] at h1 have h2 : (2 * ((|b| : ℝ) * ((d : ℝ) - 1)) + 2 * (2 * (|b| : ℝ) * ((d - 2 : ℕ) : ℝ) / ((a : ℝ) - 1))) / ((a : ℝ) - (|b| : ℝ) - 1) < (2 * (|b| : ℝ) * ((d : ℝ) - 1) + 2) / ((a : ℝ) - (|b| : ℝ) - 1) := by apply div_lt_div_of_pos_right _ hden2 linarith exact lt_of_le_of_lt h1 h2 have h2α' : 2 / ((a : ℝ) - 1) ≤ 2 / ((a : ℝ) - (|b| : ℝ) - 1) := div_le_div_of_nonneg_left (by norm_num) hden2 (by linarith) have hsum_lt : 2 / ((a : ℝ) - (|b| : ℝ) - 1) + (2 * (|b| : ℝ) * ((d : ℝ) - 1) + 2) / ((a : ℝ) - (|b| : ℝ) - 1) ≤ 1 := by rw [← add_div, div_le_one hden2] nlinarith linarith rcases confinement_gap_of_power_sum_l1_lt_one (pisotTrinomial_monic hd a b) hα2 hα_root hsumm hlt1 with ⟨hgap, hnequi⟩ exact ⟨α, hisPisot, hα2, hα_root, hgap, hnequi⟩ /-- **Sharper Unit-Trinomial Linear Threshold (`b = ±1`, `a ≥ 2 * d + 4` for ALL `d ≥ 2`):** For every degree `d ≥ 2`, `b ∈ {1, -1}`, and `a ≥ 2 * d + 4`, the Pisot unit root `α` of `X^d - a X^{d-1} + b` satisfies strong confinement and Bugeaud Problem 10.61! -/ theorem problem_10_61_unit_trinomial_linear {d : ℕ} (hd : 2 ≤ d) {a b : ℤ} (hb : b = 1 ∨ b = -1) (ha : 2 * (d : ℤ) + 4 ≤ a) : ∃ α : ℝ, IsPisot α ∧ 2 < α ∧ Polynomial.aeval α (pisotTrinomial d a b) = 0 ∧ (∃ x r : ℝ, 0 < r ∧ Set.Ioo (x - r) (x + r) ⊆ Set.Ioo (0 : ℝ) 1 ∧ ∀ ξ ∈ pisotCantorSet α, ∀ n : ℕ, Int.fract (ξ * α ^ n) ∉ Set.Ioo (x - r) (x + r)) ∧ (∀ ξ ∈ pisotCantorSet α, ¬ IsEquidistributedModuloOne (fun n => ξ * α ^ (n + 1))) := by have hb_ne : b ≠ 0 := by rcases hb with rfl | rfl <;> decide have habs : |b| = 1 := by rcases hb with rfl | rfl <;> decide have habsR : |(b : ℝ)| = 1 := by rcases hb with rfl | rfl <;> norm_num have ha_ge : |b| + 2 ≤ a := by omega rcases exists_pisot_root_trinomial hd hb_ne ha_ge with ⟨α, hα_lo, hα_hi, hα_side, hα_root⟩ have hα_gt : ((|b| : ℝ) + 1) < α := by have : (|b| : ℝ) + 2 ≤ (a : ℝ) := by exact_mod_cast ha_ge linarith have hα2 : 2 < α := by rw [habsR] at hα_gt; linarith rcases trinomial_conjugate_norm_lt_one hd hb_ne ha_ge hα_gt hα_root with ⟨_, _, hisPisot⟩ have haR : 2 * (d : ℝ) + 4 ≤ (a : ℝ) := by exact_mod_cast ha have hdR : (2 : ℝ) ≤ (d : ℝ) := by exact_mod_cast hd have hbig : 4 * ((d - 1 : ℕ) : ℝ) * (|b| : ℝ) < (a : ℝ) ^ d := by rw [habsR, mul_one] have ha_sq : (a : ℝ) ^ 2 ≤ (a : ℝ) ^ d := pow_le_pow_right₀ (by linarith) hd have hdm1 : ((d - 1 : ℕ) : ℝ) = (d : ℝ) - 1 := by rw [Nat.cast_sub (by omega : 1 ≤ d), Nat.cast_one] rw [hdm1] have : 4 * ((d : ℝ) - 1) < (a : ℝ) ^ 2 := by nlinarith linarith have hbern := trinomial_bernoulli_ratio_le_two hd hb_ne ha_ge hα_lo hα_side hα_root hbig rcases trinomial_power_sum_l1_le hd hb_ne ha_ge hα_gt hα_lo hα_hi hα_side hα_root hbern with ⟨hsumm, hS_le⟩ have hlt1 : 2 / α + 2 * (∑' m : ℕ, |conjPowerSum (pisotTrinomial d a b) α (m + 1)|) < 1 := by rw [habsR] at hS_le have hden1 : (0 : ℝ) < (a : ℝ) - 1 := by linarith have hden2 : (0 : ℝ) < (a : ℝ) - 2 := by linarith have h2α : 2 / α < 2 / ((a : ℝ) - 1) := div_lt_div_of_pos_left (by norm_num) hden1 hα_lo have hdm1 : ((d - 1 : ℕ) : ℝ) = (d : ℝ) - 1 := by rw [Nat.cast_sub (by omega : 1 ≤ d), Nat.cast_one] have hdm2 : ((d - 2 : ℕ) : ℝ) = (d : ℝ) - 2 := by rw [Nat.cast_sub hd]; norm_num -- Directly verify `2/(a-1) + 2*((d-1) + 2*(d-2)/(a-1))/(a-2) ≤ 1`! -- Clear denominators `(a - 1) * (a - 2)`: -- LHS * (a-1)*(a-2) = 2*(a-2) + 2*(d-1)*(a-1) + 4*(d-2) -- RHS * (a-1)*(a-2) = (a-1)*(a-2) -- Difference: (a-1)*(a-2) - [2(a-2) + 2(d-1)(a-1) + 4(d-2)] -- = (a - 2d - 1)*(a - 1) - (a - 1) - 2(a - 2) - 4(d - 2) ... wait: -- Let `t = a - (2d + 4) ≥ 0`, then: -- (a-1)(a-2) - (2(a-2) + 2(d-1)(a-1) + 4(d-2)) -- = (2d+3+t)(2d+2+t) - (2(2d+2+t) + 2(d-1)(2d+3+t) + 4(d-2)) -- = t^2 + (2d + 5) t + (2d + 16) > 0 FOR ALL d ≥ 2, t ≥ 0!! have halg : 2 / ((a : ℝ) - 1) + 2 * ((1 * ((d - 1 : ℕ) : ℝ) + 2 * 1 * ((d - 2 : ℕ) : ℝ) / ((a : ℝ) - 1)) / ((a : ℝ) - 1 - 1)) < 1 := by rw [hdm1, hdm2] have hsub2 : (a : ℝ) - 1 - 1 = (a : ℝ) - 2 := by ring rw [hsub2] have hrew : 2 / ((a : ℝ) - 1) + 2 * ((1 * ((d : ℝ) - 1) + 2 * 1 * ((d : ℝ) - 2) / ((a : ℝ) - 1)) / ((a : ℝ) - 2)) = (2 * ((a : ℝ) - 2) + 2 * ((d : ℝ) - 1) * ((a : ℝ) - 1) + 4 * ((d : ℝ) - 2)) / (((a : ℝ) - 1) * ((a : ℝ) - 2)) := by field_simp [hden1.ne', hden2.ne']; ring rw [hrew, div_lt_one (mul_pos hden1 hden2)] nlinarith have h1 := mul_le_mul_of_nonneg_left hS_le (by norm_num : (0 : ℝ) ≤ 2) linarith rcases confinement_gap_of_power_sum_l1_lt_one (pisotTrinomial_monic hd a b) hα2 hα_root hsumm hlt1 with ⟨hgap, hnequi⟩ exact ⟨α, hisPisot, hα2, hα_root, hgap, hnequi⟩ /-- **EXPONENTIAL SEPARATION THEOREM (`Linear vs Route A`):** For every degree `d ≥ 4`, `b = ±1`, and `a = 2 * d + 4`, our Pillar 2 theorem resolves Bugeaud Problem 10.61 for the Pisot unit root `α` of `X^d - a X^{d-1} + b`, while the Route A covering exponent satisfies **`routeAExponent α ρ > 1`** (where `ρ` is the maximum modulus of the conjugates of `α`), so Route A strictly fails! (In fact, for EVERY `a < 2^d - 1`, `routeAExponent α ρ > 1`!) -/ theorem linear_threshold_beats_routeA_exponentially {d : ℕ} (hd : 4 ≤ d) {b : ℤ} (hb : b = 1 ∨ b = -1) : let a : ℤ := 2 * (d : ℤ) + 4 ∃ α : ℝ, IsPisot α ∧ 2 < α ∧ Polynomial.aeval α (pisotTrinomial d a b) = 0 ∧ (∀ ξ ∈ pisotCantorSet α, ¬ IsEquidistributedModuloOne (fun n => ξ * α ^ (n + 1))) ∧ ∀ ρ : ℝ, 0 < ρ → ρ < 1 → (∀ z ∈ conjugateRoots (pisotTrinomial d a b) α, ‖z‖ ≤ ρ) → 1 < routeAExponent α ρ := by intro a have hd2 : 2 ≤ d := by omega rcases problem_10_61_unit_trinomial_linear hd2 hb (le_refl a) with ⟨α, hisPisot, hα2, hα_root, _, hnequi⟩ refine ⟨α, hisPisot, hα2, hα_root, hnequi, ?_⟩ intro ρ hρ_pos hρ1 hconj_ρ -- By Vieta's product formula, `α * ∏_{z ∈ conjugateRoots} ‖z‖ = |b| = 1`, -- so `α * ρ^(d-1) ≥ 1`, hence `ρ^(d-1) ≥ 1 / α`, i.e., `log(1/ρ) ≤ (log α) / (d - 1)`! -- Therefore `routeAExponent α ρ = log 2 / log α + log 2 / log(1/ρ) ≥ d * log 2 / log α`! -- Since `α < a + 1 = 2d + 5 < 2^d` for all `d ≥ 4`, we get `d * log 2 / log α > 1`!! have hP := pisotTrinomial_monic hd2 a b have htot_card : ((pisotTrinomial d a b).map (algebraMap ℤ ℂ)).roots.card = d := by calc ((pisotTrinomial d a b).map (algebraMap ℤ ℂ)).roots.card = ((pisotTrinomial d a b).map (algebraMap ℤ ℂ)).natDegree := (Polynomial.Splits.natDegree_eq_card_roots (IsAlgClosed.splits ((pisotTrinomial d a b).map (algebraMap ℤ ℂ)))).symm _ = (pisotTrinomial d a b).natDegree := map_int_complex_natDegree _ _ = d := pisotTrinomial_natDegree hd2 a b have hcard : (conjugateRoots (pisotTrinomial d a b) α).card = d - 1 := by have hroots := roots_eq_cons_conjugateRoots hP hα_root rw [hroots, Multiset.card_cons] at htot_card omega -- Vieta product of all roots = `(-1)^d * b` have hprod_all : ((pisotTrinomial d a b).map (algebraMap ℤ ℂ)).roots.prod = (-1 : ℂ) ^ d * (b : ℂ) := by have hvieta := multiset_roots_esymm_int hP d rw [pisotTrinomial_natDegree hd2 a b, if_pos le_rfl, Nat.sub_self] at hvieta have hcoeff0 : (pisotTrinomial d a b).coeff 0 = b := by unfold pisotTrinomial simp only [coeff_add, coeff_sub, coeff_X_pow, coeff_C_mul_X_pow, coeff_C] have h1 : 0 ≠ d := by omega have h2 : 0 ≠ d - 1 := by omega simp [h1, h2] rw [hcoeff0] at hvieta have hesymm_card : ((pisotTrinomial d a b).map (algebraMap ℤ ℂ)).roots.esymm d = ((pisotTrinomial d a b).map (algebraMap ℤ ℂ)).roots.prod := by have hgen : ∀ s : Multiset ℂ, s.esymm s.card = s.prod := fun s => by simp [Multiset.esymm] have h1 := hgen ((pisotTrinomial d a b).map (algebraMap ℤ ℂ)).roots rwa [htot_card] at h1 rw [← hesymm_card, hvieta] push_cast; ring have hprod_norm : α * ρ ^ (d - 1) ≥ 1 := by have h1 := congrArg norm hprod_all rw [roots_eq_cons_conjugateRoots hP hα_root, Multiset.prod_cons, norm_mul, Complex.norm_real, Real.norm_of_nonneg (by linarith), norm_mul, norm_pow, norm_neg, norm_one, one_pow, one_mul, Complex.norm_intCast] at h1 have habs1 : (|b| : ℝ) = 1 := by rcases hb with rfl | rfl <;> norm_num rw [habs1] at h1 have hmult_norm : ∀ s : Multiset ℂ, ‖s.prod‖ = (s.map norm).prod := by intro s induction s using Multiset.induction_on with | empty => simp | cons w s ih => simp [ih] rw [hmult_norm] at h1 have hle : ((conjugateRoots (pisotTrinomial d a b) α).map norm).prod ≤ ρ ^ (d - 1) := by have hbound : ∀ s : Multiset ℂ, (∀ z ∈ s, ‖z‖ ≤ ρ) → (s.map norm).prod ≤ ρ ^ s.card := by intro s hs induction s using Multiset.induction_on with | empty => simp | cons w s ih => rw [Multiset.map_cons, Multiset.prod_cons, Multiset.card_cons, pow_succ'] have hw := hs w (Multiset.mem_cons_self w s) have hs' := ih (fun z hz => hs z (Multiset.mem_cons_of_mem hz)) exact mul_le_mul hw hs' (Multiset.prod_nonneg (by intro x hx; rcases Multiset.mem_map.mp hx with ⟨z, _, rfl⟩; exact norm_nonneg z)) hρ_pos.le rw [← hcard] exact hbound _ hconj_ρ nlinarith -- Also prove `α < 2 ^ d` (since `α < a + 1 = 2d + 5` and `2d + 5 < 2^d` for all `d ≥ 4`)! have hα_lt_2pow : α < (2 : ℝ) ^ d := by have hα_lt_ap1 : α < (a : ℝ) + 1 := by by_contra hge push Not at hge have hα_eq : α ^ d - (a : ℝ) * α ^ (d - 1) + (b : ℝ) = 0 := by rwa [pisotTrinomial_aeval_real] at hα_root have h1 : α ^ d - (a : ℝ) * α ^ (d - 1) = α ^ (d - 1) * (α - (a : ℝ)) := by have : α ^ d = α ^ (d - 1) * α := by rw [← pow_succ, Nat.sub_add_cancel (by omega)] rw [this]; ring have h2 : (1 : ℝ) ≤ α ^ (d - 1) := one_le_pow₀ (by linarith) have h3 : (1 : ℝ) ≤ α - (a : ℝ) := by linarith have h4 : (-1 : ℝ) ≤ (b : ℝ) := by rcases hb with rfl | rfl <;> norm_num have h5 : (2 : ℝ) ≤ α ^ (d - 1) := by have : α ≤ α ^ (d - 1) := le_self_pow₀ (by linarith) (by omega) linarith nlinarith have hnat_aux : ∀ n : ℕ, 4 ≤ n → 2 * n + 5 < 2 ^ n := by intro n hn induction n, hn using Nat.le_induction with | base => norm_num | succ k hk ih => have h2 := Nat.mul_lt_mul_of_pos_left ih (by decide : 0 < 2) rw [pow_succ'] omega have hnat : 2 * d + 5 < 2 ^ d := hnat_aux d hd have hreal : (2 * (d : ℝ) + 5) < (2 : ℝ) ^ d := by exact_mod_cast hnat have ha_eq : (a : ℝ) + 1 = 2 * (d : ℝ) + 5 := by dsimp [a]; push_cast; ring linarith -- Now lower-bound `routeAExponent α ρ`! unfold routeAExponent have hlogα_pos : 0 < Real.log α := Real.log_pos (by linarith) have hlog2_pos : 0 < Real.log 2 := Real.log_pos (by norm_num) have hlog_inv_pos : 0 < Real.log ρ⁻¹ := Real.log_pos (one_lt_inv_iff₀.mpr ⟨hρ_pos, hρ1⟩) -- From `α * ρ^(d-1) ≥ 1`, take logs: `(d - 1) * log(1/ρ) ≤ log α`! have hlog_le : ((d - 1 : ℕ) : ℝ) * Real.log ρ⁻¹ ≤ Real.log α := by have hinv : (ρ⁻¹) ^ (d - 1) ≤ α := by rw [inv_pow, inv_le_comm₀ (pow_pos hρ_pos _) (by linarith)] rw [inv_eq_one_div, div_le_iff₀ (by linarith)] linarith have h1 := Real.log_le_log (pow_pos (inv_pos.mpr hρ_pos) _) hinv rwa [Real.log_pow] at h1 have hterm2 : ((d - 1 : ℕ) : ℝ) * (Real.log 2 / Real.log α) ≤ Real.log 2 / Real.log ρ⁻¹ := by rw [mul_div_assoc', div_le_div_iff₀ hlogα_pos hlog_inv_pos] have := mul_le_mul_of_nonneg_left hlog_le hlog2_pos.le linarith have hsum_ge : (d : ℝ) * (Real.log 2 / Real.log α) ≤ Real.log 2 / Real.log α + Real.log 2 / Real.log ρ⁻¹ := by have hdm1 : ((d - 1 : ℕ) : ℝ) + 1 = (d : ℝ) := by rw [Nat.cast_sub (by omega : 1 ≤ d), Nat.cast_one]; ring linarith [show (d : ℝ) * (Real.log 2 / Real.log α) = Real.log 2 / Real.log α + ((d - 1 : ℕ) : ℝ) * (Real.log 2 / Real.log α) by rw [← hdm1]; ring] have hgt1 : 1 < (d : ℝ) * (Real.log 2 / Real.log α) := by rw [mul_div_assoc', one_lt_div hlogα_pos] have hlog := Real.log_lt_log (by linarith) hα_lt_2pow rwa [Real.log_pow] at hlog linarith /-! ## Section 6: Pillar 3 — Full Arbitrary-Degree `d ≥ 2` Route A Covering Criterion -/ /-- Generate all `2^L` bit-weighted finite sums `∑_{j=0}^{L-1} bit_j * w_j`. -/ def bitSums : List ℝ → List ℝ | [] => [0] | w :: ws => let rest := bitSums ws rest ++ rest.map (fun x => x + w) lemma bitSums_length (ws : List ℝ) : (bitSums ws).length = 2 ^ ws.length := by induction ws with | nil => simp [bitSums] | cons w ws ih => simp [bitSums, ih, pow_succ'] omega lemma mem_bitSums_of_bits (ws : List ℝ) (bits : ℕ → Bool) : (∑ j ∈ Finset.range ws.length, (if bits j then (1 : ℝ) else 0) * ws.getD j 0) ∈ bitSums ws := by induction ws generalizing bits with | nil => simp [bitSums] | cons w ws ih => simp only [List.length_cons, bitSums, List.mem_append, List.mem_map] rw [Finset.sum_range_succ'] have hhead : (if bits 0 then (1 : ℝ) else 0) * (w :: ws).getD 0 0 = if bits 0 then w else 0 := by cases bits 0 <;> simp have htail : (∑ j ∈ Finset.range ws.length, (if bits (j + 1) then (1 : ℝ) else 0) * (w :: ws).getD (j + 1) 0) ∈ bitSums ws := by simpa using ih (fun j => bits (j + 1)) rw [hhead] cases bits 0 · left; simpa using htail · right; refine ⟨_, htail, by simp [add_comm]⟩ /-- Helper lemma for Pillar 3: geometric tail bound on the discarded past conjugate shift weights for `m ≥ M`. -/ lemma past_tail_bound_of_conjugate_radius {P : ℤ[X]} (hP : P.Monic) {α ρ : ℝ} (hα : Polynomial.aeval α P = 0) (hρ0 : 0 < ρ) (hρ1 : ρ < 1) (hconj : ∀ z ∈ conjugateRoots P α, ‖z‖ ≤ ρ) (M n : ℕ) (ε : ℕ → Bool) : |∑ m ∈ Finset.range n, if M ≤ m then (if ε (n - 1 - m) then (1 : ℝ) else 0) * reducedShiftWeight P α m else 0| ≤ (4 * ((P.natDegree - 1 : ℕ) : ℝ) / (1 - ρ)) * ρ ^ M := by set D : ℝ := ((P.natDegree - 1 : ℕ) : ℝ) have hD0 : 0 ≤ D := Nat.cast_nonneg _ refine le_trans (Finset.abs_sum_le_sum_abs _ _) ?_ have hbound_m : ∀ m : ℕ, |reducedShiftWeight P α m| ≤ 2 * D * ρ ^ m := by intro m rcases m with _ | m · simp only [reducedShiftWeight, abs_neg, pow_zero, mul_one] have h1 := abs_conjPowerSum_le hP hα hρ0.le hconj 1 have hρle1 : ρ ^ 1 ≤ 1 := by simpa using hρ1.le dsimp [D]; nlinarith · simp only [reducedShiftWeight] have h1 := abs_conjPowerSum_le hP hα hρ0.le hconj (m + 1) have h2 := abs_conjPowerSum_le hP hα hρ0.le hconj (m + 2) have hρ_pow : ρ ^ (m + 2) ≤ ρ ^ (m + 1) := by rw [pow_succ]; nlinarith [pow_nonneg hρ0.le (m + 1)] calc |conjPowerSum P α (m + 1) - conjPowerSum P α (m + 2)| ≤ |conjPowerSum P α (m + 1)| + |conjPowerSum P α (m + 2)| := abs_sub _ _ _ ≤ D * ρ ^ (m + 1) + D * ρ ^ (m + 2) := add_le_add h1 h2 _ ≤ 2 * D * ρ ^ (m + 1) := by nlinarith have hsum_le : (∑ m ∈ Finset.range n, |if M ≤ m then (if ε (n - 1 - m) then (1 : ℝ) else 0) * reducedShiftWeight P α m else 0|) ≤ ∑ m ∈ Finset.range n, if M ≤ m then 2 * D * ρ ^ m else 0 := by apply Finset.sum_le_sum intro m _ split_ifs with hM hε · simpa using hbound_m m · simp only [zero_mul, abs_zero] positivity · simp refine le_trans hsum_le ?_ have hgeom_summ : Summable (fun k : ℕ => 2 * D * ρ ^ (k + M)) := by have : (fun k : ℕ => 2 * D * ρ ^ (k + M)) = (fun k : ℕ => (2 * D * ρ ^ M) * ρ ^ k) := by ext k; rw [pow_add]; ring rw [this] exact (summable_geometric_of_lt_one hρ0.le hρ1).mul_left _ have hsum_shift : (∑ m ∈ Finset.range n, if M ≤ m then 2 * D * ρ ^ m else 0) ≤ ∑ k ∈ Finset.range n, 2 * D * ρ ^ (k + M) := by by_cases hnM : n ≤ M · have h0 : (∑ m ∈ Finset.range n, if M ≤ m then 2 * D * ρ ^ m else 0) = 0 := by apply Finset.sum_eq_zero; intro m hm have : m < M := lt_of_lt_of_le (Finset.mem_range.mp hm) hnM simp [not_le.mpr this] rw [h0] exact Finset.sum_nonneg (fun _ _ => by positivity) · push Not at hnM have hrew : (∑ m ∈ Finset.range n, if M ≤ m then 2 * D * ρ ^ m else 0) = ∑ k ∈ Finset.range (n - M), 2 * D * ρ ^ (k + M) := by rw [← Finset.sum_filter] apply Finset.sum_bij (fun m _ => m - M) · intro m hm rw [Finset.mem_filter, Finset.mem_range] at hm rw [Finset.mem_range]; omega · intro m1 hm1 m2 hm2 heq rw [Finset.mem_filter] at hm1 hm2; omega · intro k hk rw [Finset.mem_range] at hk refine ⟨k + M, ?_, by omega⟩ rw [Finset.mem_filter, Finset.mem_range] exact ⟨by omega, by omega⟩ · intro m hm rw [Finset.mem_filter] at hm congr 2; exact (Nat.sub_add_cancel hm.2).symm rw [hrew] exact Finset.sum_le_sum_of_subset_of_nonneg (Finset.range_mono (by omega)) (fun _ _ _ => by positivity) have htsum_eq : (∑' k : ℕ, 2 * D * ρ ^ (k + M)) = 2 * D * ρ ^ M / (1 - ρ) := by have : (fun k : ℕ => 2 * D * ρ ^ (k + M)) = (fun k : ℕ => (2 * D * ρ ^ M) * ρ ^ k) := by ext k; rw [pow_add]; ring rw [this, tsum_mul_left, tsum_geometric_of_lt_one hρ0.le hρ1, div_eq_mul_inv] have hle_tsum := hgeom_summ.sum_le_tsum (Finset.range n) (fun _ _ => by positivity) rw [htsum_eq] at hle_tsum have h2le4 : 2 * D * ρ ^ M / (1 - ρ) ≤ (4 * D / (1 - ρ)) * ρ ^ M := by have h1 : 0 ≤ D * ρ ^ M / (1 - ρ) := by positivity linarith [show 4 * D / (1 - ρ) * ρ ^ M = 4 * (D * ρ ^ M / (1 - ρ)) by ring, show 2 * D * ρ ^ M / (1 - ρ) = 2 * (D * ρ ^ M / (1 - ρ)) by ring] exact le_trans hsum_shift (le_trans hle_tsum h2le4) /-- Helper lemma for Pillar 3: given explicit truncation depths `K, M` whose total wrapped-interval cover length `2^(K+M) * (α⁻¹^K + 2 * δ_past)` is `< 1`, every orbit `Int.fract (ξ * α^n)` misses an explicit open interval `(x - r, x + r) ⊆ (0, 1)`. -/ private lemma covering_gap_of_truncation {P : ℤ[X]} (hP : P.Monic) {α ρ : ℝ} (hα1 : 1 < α) (hα : Polynomial.aeval α P = 0) (hρ0 : 0 < ρ) (hρ1 : ρ < 1) (hconj : ∀ z ∈ conjugateRoots P α, ‖z‖ ≤ ρ) (K M : ℕ) (htot_lt1 : ((2 : ℝ) ^ (K + M)) * (α⁻¹ ^ K + 2 * ((4 * ((P.natDegree - 1 : ℕ) : ℝ) / (1 - ρ)) * ρ ^ M)) < 1) : ∃ x r : ℝ, 0 < r ∧ Set.Ioo (x - r) (x + r) ⊆ Set.Ioo (0 : ℝ) 1 ∧ ∀ ξ ∈ pisotCantorSet α, ∀ n : ℕ, Int.fract (ξ * α ^ n) ∉ Set.Ioo (x - r) (x + r) := by let δ_past : ℝ := (4 * ((P.natDegree - 1 : ℕ) : ℝ) / (1 - ρ)) * ρ ^ M let w_box : ℝ := α⁻¹ ^ K + 2 * δ_past have hδ0 : 0 ≤ δ_past := by dsimp only [δ_past]; positivity have hαK0 : 0 ≤ α⁻¹ ^ K := by positivity let futWeights : List ℝ := (List.range K).map (fun j => (α - 1) * α⁻¹ ^ (j + 1)) let pastWeights : List ℝ := (List.range M).map (fun m => reducedShiftWeight P α m) let allWeights : List ℝ := futWeights ++ pastWeights have hall_len : allWeights.length = K + M := by simp [allWeights, futWeights, pastWeights] let centers : List ℝ := bitSums allWeights let coverList : List (ℝ × ℝ) := centers.flatMap (fun c => wrapInterval (c - δ_past) (c + α⁻¹ ^ K + δ_past)) have hcover_valid : ∀ p ∈ coverList, p.1 ≤ p.2 := by intro p hp rw [List.mem_flatMap] at hp rcases hp with ⟨c, _, hp'⟩ exact (wrapInterval_valid (by linarith only [hδ0, hαK0] : c - δ_past ≤ c + α⁻¹ ^ K + δ_past)).1 p hp' have hcover_len : intervalListLen coverList ≤ (centers.length : ℝ) * w_box := by have haux : ∀ L : List ℝ, intervalListLen (L.flatMap (fun c => wrapInterval (c - δ_past) (c + α⁻¹ ^ K + δ_past))) ≤ (L.length : ℝ) * w_box := by intro L induction L with | nil => simp [intervalListLen] | cons c rest ih => simp only [List.flatMap_cons, intervalListLen_append, List.length_cons, Nat.cast_add, Nat.cast_one] have h1 := (wrapInterval_valid (by linarith only [hδ0, hαK0] : c - δ_past ≤ c + α⁻¹ ^ K + δ_past)).2.1 have hlen_eq : (c + α⁻¹ ^ K + δ_past) - (c - δ_past) = w_box := by dsimp only [w_box]; ring rw [hlen_eq] at h1 linarith only [h1, ih] exact haux centers have hcenters_len : (centers.length : ℝ) = (2 : ℝ) ^ (K + M) := by dsimp only [centers] rw [bitSums_length, hall_len] push_cast; rfl have hcover_lt1 : intervalListLen coverList < 1 := by rw [hcenters_len] at hcover_len exact lt_of_le_of_lt hcover_len htot_lt1 rcases exists_missed_Ioo_of_cover_lt_one coverList hcover_valid hcover_lt1 with ⟨x, r, hr, hsub, hmiss⟩ refine ⟨x, r, hr, hsub, ?_⟩ rintro ξ ⟨ε, rfl⟩ n hmem rw [cantorPoint_mul_pow_split hα1 ε n, cantorPoint_prefix_tail hα1 (fun k => ε (k + n)) K] at hmem have hterm_int : ∀ m : ℕ, ∃ z : ℤ, (if ε (n - 1 - m) then (1 : ℝ) else 0) * (α ^ m * (α - 1)) = (z : ℝ) + (if ε (n - 1 - m) then (1 : ℝ) else 0) * reducedShiftWeight P α m := by intro m rcases alpha_pow_mul_sub_one_mod_int hP hα m with ⟨zm, hzm⟩ cases ε (n - 1 - m) · exact ⟨0, by simp⟩ · exact ⟨zm, by simpa using hzm⟩ choose zfun hzfun using hterm_int let Z : ℤ := ∑ m ∈ Finset.range n, zfun m let bits : ℕ → Bool := fun i => if i < K then ε (i + n) else if i - K < n then ε (n - 1 - (i - K)) else false let c : ℝ := ∑ j ∈ Finset.range allWeights.length, (if bits j then (1 : ℝ) else 0) * allWeights.getD j 0 have hc_mem : c ∈ centers := mem_bitSums_of_bits allWeights bits have hc_eq : c = (α - 1) * (∑ j ∈ Finset.range K, (if ε (j + n) then (1 : ℝ) else 0) * α⁻¹ ^ (j + 1)) + ∑ m ∈ Finset.range n, if m < M then (if ε (n - 1 - m) then (1 : ℝ) else 0) * reducedShiftWeight P α m else 0 := by dsimp only [c] rw [hall_len, Finset.sum_range_add] congr 1 · rw [Finset.mul_sum] apply Finset.sum_congr rfl intro j hj have hjK : j < K := Finset.mem_range.mp hj have hget : allWeights.getD j 0 = (α - 1) * α⁻¹ ^ (j + 1) := by dsimp only [allWeights, futWeights] rw [List.getD_eq_getElem?_getD, List.getElem?_append_left (by simp [hjK])] simp [hjK] rw [hget] dsimp only [bits] simp only [hjK, ↓reduceIte] ring · have hL : (∑ j ∈ Finset.range M, (if bits (K + j) then (1 : ℝ) else 0) * allWeights.getD (K + j) 0) = ∑ m ∈ Finset.range M, if m < n then (if ε (n - 1 - m) then (1 : ℝ) else 0) * reducedShiftWeight P α m else 0 := by apply Finset.sum_congr rfl intro j hj have hjM : j < M := Finset.mem_range.mp hj have hget : allWeights.getD (K + j) 0 = reducedShiftWeight P α j := by dsimp only [allWeights, futWeights, pastWeights] rw [List.getD_eq_getElem?_getD, List.getElem?_append_right (by simp)] simp [hjM] have hnotK : ¬ K + j < K := by omega have hsubK : K + j - K = j := by omega rw [hget] dsimp only [bits] simp only [hnotK, ↓reduceIte, hsubK] by_cases hjn : j < n <;> simp [hjn] rw [hL, ← Finset.sum_filter, ← Finset.sum_filter] congr 1 ext m; simp [Finset.mem_filter, Finset.mem_range]; omega let pastTail : ℝ := ∑ m ∈ Finset.range n, if M ≤ m then (if ε (n - 1 - m) then (1 : ℝ) else 0) * reducedShiftWeight P α m else 0 let futTail : ℝ := α⁻¹ ^ K * cantorPoint α (fun k => ε (k + K + n)) have hval_eq : (∑ m ∈ Finset.range n, (if ε (n - 1 - m) then (1 : ℝ) else 0) * (α ^ m * (α - 1))) + ((α - 1) * (∑ k ∈ Finset.range K, (if ε (k + n) then (1 : ℝ) else 0) * α⁻¹ ^ (k + 1)) + α⁻¹ ^ K * cantorPoint α (fun k => ε (k + K + n))) = (Z : ℝ) + (c + pastTail + futTail) := by have hpref_split : (∑ m ∈ Finset.range n, (if ε (n - 1 - m) then (1 : ℝ) else 0) * (α ^ m * (α - 1))) = (Z : ℝ) + (∑ m ∈ Finset.range n, if m < M then (if ε (n - 1 - m) then (1 : ℝ) else 0) * reducedShiftWeight P α m else 0) + pastTail := by have h1 : (∑ m ∈ Finset.range n, (if ε (n - 1 - m) then (1 : ℝ) else 0) * (α ^ m * (α - 1))) = (Z : ℝ) + ∑ m ∈ Finset.range n, (if ε (n - 1 - m) then (1 : ℝ) else 0) * reducedShiftWeight P α m := by dsimp only [Z]; rw [Int.cast_sum, ← Finset.sum_add_distrib] exact Finset.sum_congr rfl (fun m _ => hzfun m) rw [h1, add_assoc]; congr 1 dsimp only [pastTail] rw [← Finset.sum_add_distrib] apply Finset.sum_congr rfl intro m _ by_cases hlt : m < M · simp [hlt, not_le.mpr hlt] · have hge : M ≤ m := not_lt.mp hlt simp [hlt, hge] rw [hpref_split, hc_eq] dsimp only [futTail] ring have hpast_abs : |pastTail| ≤ δ_past := past_tail_bound_of_conjugate_radius hP hα hρ0 hρ1 hconj M n ε have hfut0 : 0 ≤ futTail := mul_nonneg hαK0 (cantorPoint_nonneg hα1 _) have hfut1 : futTail ≤ α⁻¹ ^ K := by have hle1 := cantorPoint_le_one hα1 (fun k => ε (k + K + n)) simpa [futTail] using mul_le_mul_of_nonneg_left hle1 hαK0 have hp1 : -δ_past ≤ pastTail := (abs_le.mp hpast_abs).1 have hp2 : pastTail ≤ δ_past := (abs_le.mp hpast_abs).2 have hlo : c - δ_past ≤ c + pastTail + futTail := by linarith only [hp1, hfut0] have hhi : c + pastTail + futTail ≤ c + α⁻¹ ^ K + δ_past := by linarith only [hp2, hfut1] rcases (wrapInterval_valid (by linarith only [hδ0, hαK0] : c - δ_past ≤ c + α⁻¹ ^ K + δ_past)).2.2 (c + pastTail + futTail) hlo hhi with ⟨p, hp_wrap, hp_mem⟩ have hp_cover : p ∈ coverList := List.mem_flatMap.mpr ⟨c, hc_mem, hp_wrap⟩ rw [hval_eq, add_comm (Z : ℝ), Int.fract_add_intCast] at hmem exact hmiss p hp_cover _ hmem hp_mem /-- Pure real-analytic parameter chooser for Pillar 3: whenever `routeAExponent α ρ < 1`, for any nonnegative constant `C_past ≥ 0` there exist truncation depths `K, M : ℕ` such that `2^(K+M) * (α⁻¹^K + 2 * C_past * ρ^M) < 1`. -/ private lemma exists_truncation_depths_lt_one {α ρ C_past : ℝ} (hα1 : 1 < α) (hρ0 : 0 < ρ) (hρ1 : ρ < 1) (hC0 : 0 ≤ C_past) (hA : routeAExponent α ρ < 1) : ∃ K M : ℕ, ((2 : ℝ) ^ (K + M)) * (α⁻¹ ^ K + 2 * (C_past * ρ ^ M)) < 1 := by have hlogα : 0 < Real.log α := Real.log_pos hα1 have hlogρ : 0 < Real.log ρ⁻¹ := Real.log_pos (one_lt_inv_iff₀.mpr ⟨hρ0, hρ1⟩) have hlog2 : 0 < Real.log 2 := Real.log_pos (by norm_num) have h1mA : 0 < 1 - routeAExponent α ρ := sub_pos.mpr hA have hB_pos : 0 < 4 * (1 + 2 * C_past) := by linarith only [hC0] let t : ℝ := (max 0 (Real.log (4 * (1 + 2 * C_past))) + 1) / (1 - routeAExponent α ρ) have ht_pos : 0 < t := div_pos (by linarith only [le_max_left (0 : ℝ) (Real.log (4 * (1 + 2 * C_past)))]) h1mA refine ⟨Nat.ceil (t / Real.log α), Nat.ceil (t / Real.log ρ⁻¹), ?_⟩ let K : ℕ := Nat.ceil (t / Real.log α) let M : ℕ := Nat.ceil (t / Real.log ρ⁻¹) change ((2 : ℝ) ^ (K + M)) * (α⁻¹ ^ K + 2 * (C_past * ρ ^ M)) < 1 have hαK : α⁻¹ ^ K ≤ Real.exp (-t) := by have h1 : t ≤ (K : ℝ) * Real.log α := (div_le_iff₀ hlogα).mp (Nat.le_ceil _) rw [inv_pow, inv_eq_one_div, Real.exp_neg, inv_eq_one_div] apply one_div_le_one_div_of_le (Real.exp_pos t) have h2 : Real.exp t ≤ Real.exp (Real.log α * (K : ℝ)) := by rw [mul_comm]; exact Real.exp_le_exp.mpr h1 rw [Real.exp_mul, Real.exp_log (by linarith only [hα1]), Real.rpow_natCast] at h2 exact h2 have hρM : ρ ^ M ≤ Real.exp (-t) := by have h1 : t ≤ (M : ℝ) * Real.log ρ⁻¹ := (div_le_iff₀ hlogρ).mp (Nat.le_ceil _) have h2 : Real.exp t ≤ Real.exp (Real.log ρ⁻¹ * (M : ℝ)) := by rw [mul_comm]; exact Real.exp_le_exp.mpr h1 rw [Real.exp_mul, Real.exp_log (inv_pos.mpr hρ0), Real.rpow_natCast, inv_pow] at h2 rw [Real.exp_neg] calc ρ ^ M = ((ρ ^ M)⁻¹)⁻¹ := (inv_inv _).symm _ ≤ (Real.exp t)⁻¹ := inv_anti₀ (Real.exp_pos t) h2 have h2KM : ((2 : ℝ) ^ (K + M)) ≤ 4 * Real.exp (routeAExponent α ρ * t) := by have hK_lt : (K : ℝ) < t / Real.log α + 1 := Nat.ceil_lt_add_one (div_nonneg ht_pos.le hlogα.le) have hM_lt : (M : ℝ) < t / Real.log ρ⁻¹ + 1 := Nat.ceil_lt_add_one (div_nonneg ht_pos.le hlogρ.le) have hsum_lt : (K : ℝ) + (M : ℝ) ≤ 2 + t / Real.log α + t / Real.log ρ⁻¹ := by linarith only [hK_lt, hM_lt] have hmul_le := mul_le_mul_of_nonneg_left hsum_lt hlog2.le have hA_eq : Real.log 2 * (2 + t / Real.log α + t / Real.log ρ⁻¹) = Real.log 2 * 2 + routeAExponent α ρ * t := by unfold routeAExponent; ring have hexp_le : Real.log 2 * ((K + M : ℕ) : ℝ) ≤ Real.log 2 * 2 + routeAExponent α ρ * t := by rw [Nat.cast_add, ← hA_eq]; exact hmul_le have h1 := Real.exp_le_exp.mpr hexp_le rw [Real.exp_mul, Real.exp_log (by norm_num), Real.rpow_natCast, Real.exp_add, Real.exp_mul, Real.exp_log (by norm_num)] at h1 norm_num at h1 exact h1 have hw_nonneg : 0 ≤ α⁻¹ ^ K + 2 * (C_past * ρ ^ M) := add_nonneg (pow_nonneg (inv_nonneg.mpr (by linarith only [hα1])) _) (mul_nonneg (by norm_num) (mul_nonneg hC0 (pow_nonneg hρ0.le _))) have hw_le : α⁻¹ ^ K + 2 * (C_past * ρ ^ M) ≤ (1 + 2 * C_past) * Real.exp (-t) := by have h2 : 2 * (C_past * ρ ^ M) ≤ 2 * (C_past * Real.exp (-t)) := mul_le_mul_of_nonneg_left (mul_le_mul_of_nonneg_left hρM hC0) (by norm_num) linarith only [hαK, h2] have hprod : ((2 : ℝ) ^ (K + M)) * (α⁻¹ ^ K + 2 * (C_past * ρ ^ M)) ≤ 4 * (1 + 2 * C_past) * Real.exp (-(1 - routeAExponent α ρ) * t) := by calc ((2 : ℝ) ^ (K + M)) * (α⁻¹ ^ K + 2 * (C_past * ρ ^ M)) ≤ (4 * Real.exp (routeAExponent α ρ * t)) * ((1 + 2 * C_past) * Real.exp (-t)) := mul_le_mul h2KM hw_le hw_nonneg (by positivity) _ = 4 * (1 + 2 * C_past) * (Real.exp (routeAExponent α ρ * t) * Real.exp (-t)) := by ring _ = 4 * (1 + 2 * C_past) * Real.exp (-(1 - routeAExponent α ρ) * t) := by rw [← Real.exp_add]; congr 2; ring have hexp_lt : 4 * (1 + 2 * C_past) * Real.exp (-(1 - routeAExponent α ρ) * t) < 1 := by have h1 : -(1 - routeAExponent α ρ) * t = -(max 0 (Real.log (4 * (1 + 2 * C_past))) + 1) := by dsimp only [t]; field_simp [h1mA.ne'] rw [h1, Real.exp_neg, ← div_eq_mul_inv, div_lt_one (Real.exp_pos _)] have h2 : Real.log (4 * (1 + 2 * C_past)) < max 0 (Real.log (4 * (1 + 2 * C_past))) + 1 := by linarith only [le_max_right (0 : ℝ) (Real.log (4 * (1 + 2 * C_past)))] calc 4 * (1 + 2 * C_past) = Real.exp (Real.log (4 * (1 + 2 * C_past))) := (Real.exp_log hB_pos).symm _ < Real.exp (max 0 (Real.log (4 * (1 + 2 * C_past))) + 1) := Real.exp_lt_exp.mpr h2 exact lt_of_le_of_lt hprod hexp_lt /-- **HEADLINE THEOREM (Pillar 3 — Full Arbitrary-Degree `d ≥ 2` Route A Covering Criterion):** Completely proves Stephan's open arbitrary-degree covering criterion (stated for `d ≥ 2` in Stephan 2026 but previously proved only for `d = 2`!): For **ANY** monic polynomial `P ∈ ℤ[X]` of **ARBITRARY** degree `d ≥ 2`, real root `α > 2`, and conjugate radius `0 < ρ < 1` (every `z ∈ conjugateRoots P α` satisfies `‖z‖ ≤ ρ`), IF $$\text{routeAExponent } \alpha \; \rho = \frac{\log 2}{\log \alpha} + \frac{\log 2}{\log(\rho^{-1})} < 1,$$ THEN: 1. There exists a **single explicit open interval** `(x - r, x + r) ⊆ (0, 1)` missed by `Int.fract (ξ * α ^ n)` for **every** `ξ ∈ C(α)` and **every** `n : ℕ`; 2. For **every** `ξ ∈ C(α)`, `(ξ * α ^ n)_{n ≥ 1}` is **not** uniformly distributed modulo `1`! -/ theorem problem_10_61_covering_criterion_arbitrary_degree {P : ℤ[X]} (hP : P.Monic) {α ρ : ℝ} (hα2 : 2 < α) (hα : Polynomial.aeval α P = 0) (hρ0 : 0 < ρ) (hρ1 : ρ < 1) (hconj : ∀ z ∈ conjugateRoots P α, ‖z‖ ≤ ρ) (hA : routeAExponent α ρ < 1) : (∃ x r : ℝ, 0 < r ∧ Set.Ioo (x - r) (x + r) ⊆ Set.Ioo (0 : ℝ) 1 ∧ ∀ ξ ∈ pisotCantorSet α, ∀ n : ℕ, Int.fract (ξ * α ^ n) ∉ Set.Ioo (x - r) (x + r)) ∧ (∀ ξ ∈ pisotCantorSet α, ¬ IsEquidistributedModuloOne (fun n => ξ * α ^ (n + 1))) := by have hα1 : 1 < α := by linarith only [hα2] have hC0 : 0 ≤ 4 * ((P.natDegree - 1 : ℕ) : ℝ) / (1 - ρ) := div_nonneg (mul_nonneg (by norm_num) (Nat.cast_nonneg _)) (sub_nonneg.mpr hρ1.le) rcases exists_truncation_depths_lt_one hα1 hρ0 hρ1 hC0 hA with ⟨K, M, htot_lt1⟩ rcases covering_gap_of_truncation hP hα1 hα hρ0 hρ1 hconj K M htot_lt1 with ⟨x, r, hr, hsub, hgap⟩ refine ⟨⟨x, r, hr, hsub, hgap⟩, ?_⟩ intro ξ hξ exact not_equidistributedModuloOne_of_missed_Ioo hr hsub (fun n => hgap ξ hξ (n + 1)) /-! ## Section 7: Concrete Higher-Degree Witnesses (Cubic, Quartic, Quintic & Quadratic) -/ /-- **First Cubic Pisot Family Beyond Route A (`d = 3`, `X^3 - 10 X^2 ± 1` and all `a ≥ 10`):** Unconditional resolution of Bugeaud Problem 10.61 for all cubic Pisot units `X^3 - a X^2 ± 1` with `a ≥ 10` (explicit corollary of `problem_10_61_unit_trinomial_linear`). -/ theorem problem_10_61_cubic_family {a b : ℤ} (hb : b = 1 ∨ b = -1) (ha : 10 ≤ a) : ∃ α : ℝ, IsPisot α ∧ 2 < α ∧ Polynomial.aeval α (pisotTrinomial 3 a b) = 0 ∧ (∃ x r : ℝ, 0 < r ∧ Set.Ioo (x - r) (x + r) ⊆ Set.Ioo (0 : ℝ) 1 ∧ ∀ ξ ∈ pisotCantorSet α, ∀ n : ℕ, Int.fract (ξ * α ^ n) ∉ Set.Ioo (x - r) (x + r)) ∧ (∀ ξ ∈ pisotCantorSet α, ¬ IsEquidistributedModuloOne (fun n => ξ * α ^ (n + 1))) := problem_10_61_unit_trinomial_linear (d := 3) (by decide) hb (by omega) /-- **First Explicit Quartic Pisot Unit Beating Route A (`d = 4`, `X^4 - 12 X^3 + 1`, `A ≈ 1.129 > 1`):** Route A requires `a ≥ 17`; our linear-in-`d` trace-cancellation theorem resolves `a = 12`! -/ theorem problem_10_61_quartic_12_beats_routeA : ∃ α : ℝ, IsPisot α ∧ 2 < α ∧ Polynomial.aeval α (pisotTrinomial 4 12 1) = 0 ∧ (∀ ξ ∈ pisotCantorSet α, ¬ IsEquidistributedModuloOne (fun n => ξ * α ^ (n + 1))) ∧ ∀ ρ : ℝ, 0 < ρ → ρ < 1 → (∀ z ∈ conjugateRoots (pisotTrinomial 4 12 1) α, ‖z‖ ≤ ρ) → 1 < routeAExponent α ρ := linear_threshold_beats_routeA_exponentially (d := 4) (by decide) (Or.inl rfl) /-- **First Explicit Quintic Pisot Unit Beating Route A (`d = 5`, `X^5 - 14 X^4 + 1`, `A ≈ 1.33 > 1`):** Route A requires `a ≥ 33`; our linear-in-`d` trace-cancellation theorem resolves `a = 14`! -/ theorem problem_10_61_quintic_14_beats_routeA : ∃ α : ℝ, IsPisot α ∧ 2 < α ∧ Polynomial.aeval α (pisotTrinomial 5 14 1) = 0 ∧ (∀ ξ ∈ pisotCantorSet α, ¬ IsEquidistributedModuloOne (fun n => ξ * α ^ (n + 1))) ∧ ∀ ρ : ℝ, 0 < ρ → ρ < 1 → (∀ z ∈ conjugateRoots (pisotTrinomial 5 14 1) α, ‖z‖ ≤ ρ) → 1 < routeAExponent α ρ := linear_threshold_beats_routeA_exponentially (d := 5) (by decide) (Or.inl rfl) /-- **Quadratic Pisot Unit Family (`d = 2`, `X^2 - a X ± 1`, all `a ≥ 8`):** -/ theorem problem_10_61_quadratic_family {a b : ℤ} (hb : b = 1 ∨ b = -1) (ha : 8 ≤ a) : ∃ α : ℝ, IsPisot α ∧ 2 < α ∧ Polynomial.aeval α (pisotTrinomial 2 a b) = 0 ∧ (∃ x r : ℝ, 0 < r ∧ Set.Ioo (x - r) (x + r) ⊆ Set.Ioo (0 : ℝ) 1 ∧ ∀ ξ ∈ pisotCantorSet α, ∀ n : ℕ, Int.fract (ξ * α ^ n) ∉ Set.Ioo (x - r) (x + r)) ∧ (∀ ξ ∈ pisotCantorSet α, ¬ IsEquidistributedModuloOne (fun n => ξ * α ^ (n + 1))) := problem_10_61_unit_trinomial_linear (d := 2) (by decide) hb (by omega) /-! ## Section 8: Axiom Audit -/ #print axioms exists_missed_Ioo_of_cover_lt_one #print axioms monic_root_power_sum_is_int #print axioms trinomial_root_power_sum_small #print axioms confinement_gap_of_reduced_width_lt_one #print axioms confinement_gap_of_power_sum_l1_lt_one #print axioms trinomial_conjugate_norm_lt_one #print axioms trinomial_power_sum_l1_le #print axioms problem_10_61_trinomial_linear_threshold #print axioms problem_10_61_unit_trinomial_linear #print axioms linear_threshold_beats_routeA_exponentially #print axioms problem_10_61_covering_criterion_arbitrary_degree #print axioms problem_10_61_cubic_family #print axioms problem_10_61_quartic_12_beats_routeA #print axioms problem_10_61_quintic_14_beats_routeA #print axioms problem_10_61_quadratic_family end PisotCantorEquidistribution