{
  "id": "4248",
  "ident": "NS.04248",
  "slug": "green-93",
  "title": "Ben Green's Open Problem 93",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Is a random polynomial with coefficients in $\\{0,1\\}$ and nonzero constant term almost surely\nirreducible?\n\nMore precisely, writing $p_n$ for the probability that\n$1 + a_1 x + \\cdots + a_{n-1} x^{n-1} + x^n$ is irreducible, where the $a_i$ are independent and\ntake the values $0$ and $1$ with equal probability, does $p_n \\to 1$?\n\nThe probability $p_n$ is `irreducibleProb 1 n`. The conjecture is due to Odlyzko and Poonen\n[BrVa19, Section 1].",
  "subjects": [
    "math.NT",
    "math.AC",
    "math.PR",
    "msc:11",
    "msc:12",
    "msc:60"
  ],
  "tags": [
    "question"
  ],
  "collection": "green",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Green93.green_93",
  "statement_lean": "theorem green_93 : Tendsto (fun n : ℕ ↦ irreducibleProb 1 n) atTop (𝓝 1)",
  "challenge_source": "/-\nCopyright 2026 The Formal Conjectures Authors.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    https://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n-/\nmodule\n\npublic import FormalConjecturesUtil\npublic import FormalConjectures.Wikipedia.ArtinPrimitiveRootsConjecture\n\n/-!\n# Ben Green's Open Problem 93\n\n*References:*\n- [Gr24] [Green, Ben. \"100 open problems.\" (2024).](https://people.maths.ox.ac.uk/greenbj/papers/open-problems.pdf#problem.93)\n- [BrVa19] Breuillard, E. and Varjú, P. P., *Irreducibility of random polynomials of large\n  degree*. Acta Math. 223 (2019), 195--249. [arXiv:1810.13360](https://arxiv.org/abs/1810.13360)\n- [BSKK23] Bary-Soroker, L., Koukoulopoulos, D. and Kozma, G., *Irreducibility of random\n  polynomials: general measures*. Invent. Math. 233 (2023), 1041--1120.\n  [arXiv:2007.14567](https://arxiv.org/abs/2007.14567)\n- [Ko99] Konyagin, S. V., *On the number of irreducible polynomials with 0,1 coefficients*.\n  Acta Arith. 88 (1999), 333--350.\n-/\n\n@[expose] public section\n\nopen Polynomial Filter\nopen scoped Topology\n\nnamespace Green93\n\n/--\n`monicPoly a` is the monic polynomial $X^n + a_{n-1} X^{n-1} + \\cdots + a_1 X + a_0 \\in\n\\mathbb{Z}[X]$ with lower coefficients `a j`, $0 \\le j < n$.\n-/\nnoncomputable def monicPoly {n : ℕ} (a : Fin n → ℕ) : ℤ[X] :=\n  X ^ n + ∑ j : Fin n, C (a j : ℤ) * X ^ (j : ℕ)\n\nopen scoped Classical in\n/--\n`irreducibleProb M n` is the probability that the random monic polynomial\n$$X^n + a_{n-1} X^{n-1} + \\cdots + a_1 X + a_0$$\nof degree $n$ is irreducible, where $a_0, \\dots, a_{n-1}$ are chosen uniformly from\n$\\{0, 1, \\dots, M\\}$, conditioned on the constant term $a_0$ being nonzero. It is a quotient of\ntwo finite counts over the coefficient vectors `a : Fin n → Fin (M + 1)`.\n\nThe polynomial is monic, so by Gauss's lemma it is irreducible in $\\mathbb{Z}[X]$ if and only if it\nis irreducible over $\\mathbb{Q}$ (for $n \\ge 1$). For $M = 1$ the constant term is $1$ and\n`irreducibleProb 1 n` is the probability $p_n$ of [Gr24, Problem 93] that\n$1 + a_1 x + \\cdots + a_{n-1} x^{n-1} + x^n$ is irreducible for i.i.d. uniform\n$a_i \\in \\{0, 1\\}$.\n-/\nnoncomputable def irreducibleProb (M n : ℕ) : ℝ :=\n  ((Finset.univ.filter fun a : Fin n → Fin (M + 1) ↦\n      (monicPoly fun j ↦ (a j : ℕ)).coeff 0 ≠ 0 ∧\n        Irreducible (monicPoly fun j ↦ (a j : ℕ))).card : ℝ) /\n    (Finset.univ.filter fun a : Fin n → Fin (M + 1) ↦\n      (monicPoly fun j ↦ (a j : ℕ)).coeff 0 ≠ 0).card\n\n/-- `irreducibleProb M n` is nonnegative. -/\n@[category API, AMS 11 12 60]\ntheorem irreducibleProb_nonneg (M n : ℕ) : 0 ≤ irreducibleProb M n := by\n  unfold irreducibleProb\n  positivity\n\n/-- `irreducibleProb M n` is at most $1$, since it is a quotient of a count by a larger count. -/\n@[category API, AMS 11 12 60]\ntheorem irreducibleProb_le_one (M n : ℕ) : irreducibleProb M n ≤ 1 := by\n  unfold irreducibleProb\n  apply div_le_one_of_le₀\n  · refine Nat.cast_le.mpr (Finset.card_le_card ?_)\n    intro a ha\n    simp only [Finset.mem_filter, Finset.mem_univ, true_and] at ha ⊢\n    exact ha.1\n  · positivity\n\n/--\nIs a random polynomial with coefficients in $\\{0,1\\}$ and nonzero constant term almost surely\nirreducible?\n\nMore precisely, writing $p_n$ for the probability that\n$1 + a_1 x + \\cdots + a_{n-1} x^{n-1} + x^n$ is irreducible, where the $a_i$ are independent and\ntake the values $0$ and $1$ with equal probability, does $p_n \\to 1$?\n\nThe probability $p_n$ is `irreducibleProb 1 n`. The conjecture is due to Odlyzko and Poonen\n[BrVa19, Section 1].\n-/\n@[category research open, question, AMS 11 12 60]\ntheorem green_93 : Tendsto (fun n : ℕ ↦ irreducibleProb 1 n) atTop (𝓝 1) := by\n  sorry\n\n/--\nKonyagin [Ko99] proved that $p_n \\ge c / \\log n$ for an absolute constant $c > 0$, as stated in\n[BrVa19, Section 1]. We state it for all large $n$. It is superseded by\n`green_93.variants.bskk_small`.\n-/\n@[category research solved, AMS 11 12 60]\ntheorem green_93.variants.konyagin :\n    ∃ c : ℝ, 0 < c ∧ ∀ᶠ n : ℕ in atTop, c / Real.log (n : ℝ) ≤ irreducibleProb 1 n := by\n  sorry\n\n/--\nBary-Soroker, Koukoulopoulos and Kozma [BSKK23, Theorem 1(b)] proved that a random monic\npolynomial of degree $n$ whose coefficients are uniform on $N$ consecutive integers in $[-H, H]$\nwith $2 \\le N \\le 34$, and with nonzero constant term, is irreducible with probability at least\n$\\delta$. Here $\\delta > 0$ is an absolute constant, and $n$ must be at least an absolute constant\nand at least $(\\log H)^3$. We state it for the integers $\\{0, 1, \\dots, M\\}$ with\n$1 \\le M \\le 33$, so $N = M + 1$ and $H = M$. The condition on $(\\log H)^3$ is absorbed into\n$n_0$, because $M$ is bounded. The case $M = 1$ gives $p_n \\ge \\delta$ for large $n$ for the\npolynomial of `green_93`.\n-/\n@[category research solved, AMS 11 12 60]\ntheorem green_93.variants.bskk_small :\n    ∃ δ : ℝ, 0 < δ ∧ ∃ n₀ : ℕ, ∀ M n : ℕ, 1 ≤ M → M ≤ 33 → n₀ ≤ n →\n      δ ≤ irreducibleProb M n := by\n  sorry\n\n/--\nBary-Soroker, Koukoulopoulos and Kozma [BSKK23, Theorem 1(a)] proved that a random monic\npolynomial of degree $n$ whose coefficients are uniform on $N \\ge 35$ consecutive integers in\n$[-H, H]$, with nonzero constant term, is irreducible with probability at least $1 - n^{-c}$.\nHere $c > 0$ is an absolute constant, and $n$ must be at least an absolute constant and at least\n$(\\log H)^3$. We state it for the integers\n$\\{0, 1, \\dots, M\\}$ with $M \\ge 34$, so $N = M + 1 \\ge 35$ and $H = M$. In particular\n`irreducibleProb M n` $\\to 1$ for each such $M$, which is the analogue of `green_93` for\ncoefficients in $\\{0, \\dots, M\\}$.\n-/\n@[category research solved, AMS 11 12 60]\ntheorem green_93.variants.bskk_large :\n    ∃ c : ℝ, 0 < c ∧ ∃ n₀ : ℕ, ∀ M n : ℕ, 34 ≤ M → n₀ ≤ n → (Real.log (M : ℝ)) ^ 3 ≤ n →\n      1 - (n : ℝ) ^ (-c) ≤ irreducibleProb M n := by\n  sorry\n\n/--\nThe Riemann hypothesis holds for the Dedekind zeta function of every number field $\\mathbb{Q}(a)$\ngenerated by a root $a$ of a nonzero polynomial with all coefficients in $\\{0, 1\\}$.\n\nHere a number field `K` is generated by `a` if `IntermediateField.adjoin ℚ {a} = ⊤`. The Riemann\nhypothesis for `K` is `ArtinPrimitiveRootsConjecture.DedekindZetaRH K`, which uses the analytic\ncontinuation of the Dedekind zeta function and not Mathlib's `NumberField.dedekindZeta`.\n-/\ndef ZeroOneRootFieldsRH : Prop :=\n  ∀ (K : Type) [Field K] [NumberField K] (f : ℤ[X]) (a : K),\n    f ≠ 0 → (∀ i, f.coeff i = 0 ∨ f.coeff i = 1) → aeval a f = 0 →\n      IntermediateField.adjoin ℚ {a} = ⊤ → ArtinPrimitiveRootsConjecture.DedekindZetaRH K\n\n/--\n**Breuillard and Varjú.** Assume the Riemann hypothesis for the Dedekind zeta functions of all\nnumber fields $\\mathbb{Q}(a)$ with $a$ a root of a polynomial with coefficients in $\\{0, 1\\}$\n(`ZeroOneRootFieldsRH`). Then $p_n \\to 1$ [BrVa19, Theorem 1].\n-/\n@[category research solved, AMS 11 12 60]\ntheorem green_93.variants.breuillard_varju :\n    ZeroOneRootFieldsRH → Tendsto (fun n : ℕ ↦ irreducibleProb 1 n) atTop (𝓝 1) := by\n  sorry\n\nend Green93\n",
  "statement_hash": "9467e3fd65bf8168cb9fe0fc7ba1f8e12133478bd4293daed0b46e4e9c0207fe",
  "toolchain": "leanprover/lean4:v4.33.1",
  "upstream_commit": "f9b3868d5ca994a7bf95039bcec05338c0c21e2f",
  "workspace": "formal-conjectures",
  "field": "math",
  "formalization": "formal",
  "verification": "lean-kernel",
  "license": "Apache-2.0",
  "attribution": "google-deepmind/formal-conjectures contributors",
  "metric_name": null,
  "metric_direction": null,
  "critiques": [],
  "public_partial_proofs": [],
  "research_threads": [],
  "instructions": "Read research_threads first: other people's public repositories and what they already tried. Write Solution.lean starting from challenge_source. Keep every definition identical, prove decl_name with exactly the same type, no sorry in its dependency closure, no new axioms, no native_decide, no metaprogramming. Submit with POST /api/v1/submissions."
}