{
  "id": "4118",
  "ident": "NS.04118",
  "slug": "green-43",
  "title": "Ben Green's Open Problem 43",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Let $N$ be a large integer. For each prime $p$ with $N^{0.51} \\leq p < 2N^{0.51}$, pick some\nresidue $a(p) \\in \\mathbb{Z}/p\\mathbb{Z}$. Is it true that\n$$\\#\\{n \\in [N] : n \\equiv a(p) \\pmod{p} \\text{ for some } p\\} \\gg N^{1-o(1)}?$$",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "question"
  ],
  "collection": "green",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Green43.green_43",
  "statement_lean": "theorem green_43 : SievedLowerBoundExp (0.51 : ℝ)",
  "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-/\n\nmodule\n\npublic import FormalConjecturesUtil\n\n/-!\n# Ben Green's Open Problem 43\n\n*References:*\n- [Gr24] [Ben Green's Open Problem 43](https://people.maths.ox.ac.uk/greenbj/papers/open-problems.pdf#problem.43)\n- [Gr18] Green, Ben. \"A note on multiplicative functions on progressions to large moduli.\"\n  Proc. Roy. Soc. Edinburgh Sect. A 148 (2018), no. 1, 63–77. (Problem 43 is formulated here,\n  [Gr18, Section 4].)\n- [AP92] Alon, Noga, and Yuval Peres. \"Uniform dilations.\" Geometric and Functional Analysis\n  2 (1992), no. 1, 1–28. (Source of the favourite variant in [Gr24, Comments to Problem 43].)\n-/\n\n@[expose] public section\n\nopen Filter Topology\n\nnamespace Green43\n\nopen Classical in\n/-- The *sieved subset* of `[1, N]`: those `n ∈ [1, N]` with `n ≡ a p (mod p)` for some prime\n`p` in the range `lo ≤ p < hi`. This is the set counted in `green_43`. -/\nnoncomputable def sievedSet (N : ℕ) (a : ℕ → ℤ) (lo hi : ℝ) : Finset ℤ :=\n  (Finset.Icc (1 : ℤ) (N : ℤ)).filter fun n => ∃ p, Nat.Prime p ∧\n  lo ≤ (p : ℝ) ∧ (p : ℝ) < hi ∧ (p : ℤ) ∣ ((n : ℤ) - a p)\n\n/-- The size of the sieved subset `sievedSet N a lo hi`. -/\nnoncomputable def sievedCard (N : ℕ) (a : ℕ → ℤ) (lo hi : ℝ) : ℕ :=\n  (sievedSet N a lo hi).card\n\n/--\n[Gr24, Comments to Problem 43] The statement that the lower bound `N^{1-o(1)}` holds for the\nsieved set, where for each `N` the sieving primes range over `[lo N, hi N)`. Problem 43 is the\ncase `lo N = N^{0.51}`, `hi N = 2 N^{0.51}`; the minor variants only change this range.\n-/\ndef SievedLowerBound (lo hi : ℕ → ℝ) : Prop :=\n  ∀ ε : ℝ, 0 < ε → ∀ᶠ N : ℕ in atTop, ∀ a : ℕ → ℤ, (N : ℝ) ^ (1 - ε) ≤ sievedCard N a (lo N) (hi N)\n\n/-- The exponent-`α` instance of Problem 43: the `N^{1-o(1)}` lower bound for sieving primes in\n`[N^α, 2 N^α)`. Problem 43 is `SievedLowerBoundExp 0.51`. -/\ndef SievedLowerBoundExp (α : ℝ) : Prop :=\n  SievedLowerBound (fun N => (N : ℝ) ^ α) (fun N => 2 * (N : ℝ) ^ α)\n\n/--\nLet $N$ be a large integer. For each prime $p$ with $N^{0.51} \\leq p < 2N^{0.51}$, pick some\nresidue $a(p) \\in \\mathbb{Z}/p\\mathbb{Z}$. Is it true that\n$$\\#\\{n \\in [N] : n \\equiv a(p) \\pmod{p} \\text{ for some } p\\} \\gg N^{1-o(1)}?$$\n-/\n@[category research open, question, AMS 11]\ntheorem green_43 : SievedLowerBoundExp (0.51 : ℝ) := by\n  sorry\n\n/-- The sieved set is a subset of `[1, N]`, so it always has at most `N` elements. -/\n@[category test, AMS 11]\ntheorem green_43.sieved_card_le (N : ℕ) (a : ℕ → ℤ) (lo hi : ℝ) :\n    sievedCard N a lo hi ≤ N := by\n  classical\n  unfold sievedCard sievedSet\n  exact le_trans (Finset.card_filter_le _ _) (by simp [Int.card_Icc])\n\n/-- For `N = 0` the sieved set is empty, since `[1, 0]` is empty. -/\n@[category test, AMS 11]\ntheorem green_43.sieved_card_eq_zero (a : ℕ → ℤ) (lo hi : ℝ) :\n    sievedCard 0 a lo hi = 0 := by\n  classical\n  unfold sievedCard sievedSet\n  simp\n\n/--\nIf there is a prime `p` in the sieving range `[lo, hi)` with `p ≤ N`, then the sieved set is\nnonempty: the residue class of `a p` modulo `p` always meets `[1, N]`. This shows that for large\n`N` (where Bertrand's postulate guarantees such a prime) the cardinality in `green_43` is at\nleast `1`. -/\n@[category test, AMS 11]\ntheorem green_43.sieved_nonempty (N : ℕ) (a : ℕ → ℤ) (lo hi : ℝ) (p : ℕ) (hp : Nat.Prime p)\n    (hpN : (p : ℤ) ≤ (N : ℤ)) (hlb : lo ≤ (p : ℝ)) (hub : (p : ℝ) < hi) :\n    (sievedSet N a lo hi).Nonempty := by\n  classical\n  have hp0 : (0 : ℤ) < (p : ℤ) := by exact_mod_cast hp.pos\n  set m : ℤ := a p % (p : ℤ) with hm\n  have hm_nonneg : 0 ≤ m := Int.emod_nonneg _ (by positivity)\n  have hm_lt : m < (p : ℤ) := Int.emod_lt_of_pos _ hp0\n  have hdvd : (p : ℤ) ∣ (m - a p) := by\n    rw [hm, Int.emod_def]; exact ⟨-(a p / (p : ℤ)), by ring⟩\n  -- Pick the representative of `a p mod p` inside `[1, N]`.\n  refine ⟨if m = 0 then (p : ℤ) else m, ?_⟩\n  unfold sievedSet\n  rw [Finset.mem_filter, Finset.mem_Icc]\n  refine ⟨⟨?_, ?_⟩, p, hp, hlb, hub, ?_⟩\n  · split <;> omega\n  · split <;> omega\n  · split\n    · rename_i h\n      have : (p : ℤ) ∣ a p := by simpa [h] using hdvd\n      exact dvd_sub (dvd_refl _) this\n    · exact hdvd\n\n/- ## Variants\n\nThe following formalise the related conjectures from the comments to Problem 43 in [Gr24]. -/\n\n/-- A subset `A ⊆ ℤ/pℤ` has a *gap* of length `L` if there is a run of `L` consecutive residues\nnone of which lie in `A`. -/\ndef HasGap {p : ℕ} (A : Finset (ZMod p)) (L : ℕ) : Prop :=\n  ∃ x : ZMod p, ∀ i : ℕ, i < L → x + (i : ZMod p) ∉ A\n\n/-- Following Alon–Peres [AP92], a *dilation* of `A` by an integer `n` is the set\n`n A = {n x : x ∈ A}` (here in `ℤ/pℤ`, with `n` reduced modulo `p`). -/\ndef Dilate {p : ℕ} (n : ZMod p) (A : Finset (ZMod p)) : Finset (ZMod p) :=\n  A.image (fun x => n * x)\n\n/--\n[Gr24, Comments to Problem 43; AP92] One of Green's favourite related conjectures: if\n`A ⊆ ℤ/pℤ` is a set of size `⌊p/2⌋`, does some dilation `n A` (`n` an integer) have no gaps of\nlength more than `p^{0.49}`?\n\nThe question is asymptotic, so it is stated for all sufficiently large primes `p` (see the\nlarge-prime discussion in [AP92, §2]); for small primes it fails trivially, e.g. `p = 3`, `A = {0}`.\n-/\n@[category research open, question, AMS 5 11]\ntheorem green_43.variants.alon_peres :\n    ∀ᶠ p : ℕ in atTop, p.Prime → ∀ A : Finset (ZMod p), A.card = p / 2 →\n    ∃ n : ZMod p, ∀ L : ℕ, (p : ℝ) ^ (0.49 : ℝ) < (L : ℝ) → ¬ HasGap (Dilate n A) L := by\n  sorry\n\n/--\n[Gr24, Comments to Problem 43] A minor variant of Problem 43: the same question but with `p`\nranging over `N^{0.51} ≤ p < N^{0.52}`. Obtaining the lower bound `N^{1-o(1)}` here is no harder\nthan Problem 43, but is not known.\n-/\n@[category research open, question, AMS 5 11]\ntheorem green_43.variants.range_N051_N052 :\n    SievedLowerBound (fun N => (N : ℝ) ^ (0.51 : ℝ)) (fun N => (N : ℝ) ^ (0.52 : ℝ)) := by\n  sorry\n\n/--\n[Gr24, Comments to Problem 43] For the range `N^{0.51} ≤ p < N^{0.52}` there may even be a\nlinear lower bound `c N`.\n-/\n@[category research open, question, AMS 5 11]\ntheorem green_43.variants.range_N051_N052_linear :\n    ∃ c : ℝ, 0 < c ∧ ∀ᶠ N : ℕ in atTop, ∀ a : ℕ → ℤ,\n      c * N ≤ sievedCard N a ((N : ℝ) ^ (0.51 : ℝ)) ((N : ℝ) ^ (0.52 : ℝ)) := by\n  sorry\n\n\n/--\n[Gr24, Comments to Problem 43] One can replace the exponent `0.51` by any other exponent `α`:\ndoes the lower bound `N^{1-o(1)}` hold for sieving primes in `[N^α, 2 N^α)` for every exponent\n`0 < α < 1`? Problem 43 is the case `α = 0.51`; the regime `α < 1/2` is the solved special case\n`green_43.variants.general_exponent_lt_half`, while progress for `α ≈ 1` would imply Kakeya.\n-/\n@[category research open, question, AMS 5 11]\ntheorem green_43.variants.general_exponent :\n    ∀ α : ℝ, 0 < α → α < 1 → SievedLowerBoundExp α := by\n  sorry\n\n/--\n[Gr24, Comments to Problem 43] For exponents `α < 1/2` the lower bound `N^{1-o(1)}` is\nstraightforward (by an inclusion–exclusion or Cauchy–Schwarz argument). This is the solved\nspecial case of `green_43.variants.general_exponent`.\n-/\n@[category research solved, AMS 5 11]\ntheorem green_43.variants.general_exponent_lt_half :\n    ∀ α : ℝ, 0 < α → α < 1 / 2 → SievedLowerBoundExp α := by\n  sorry\n\n\n-- TODO: [Gr24, Comments to Problem 43] The toy problem (arising from a study of Problem 48):\n-- for each prime `p` with `X ≤ p < 2X` choose a residue `a(p) (mod p)`; for distinct primes\n-- `p₁, p₂` in this range let `f(p₁, p₂) ∈ ℤ/p₁p₂ℤ` be the unique CRT solution of\n-- `f ≡ a(pᵢ) (mod pᵢ)`. What can be said about `a` if\n-- `|E_{X ≤ p₁,p₂ < 2X} e(f(p₁,p₂)/(p₁ p₂))| ≥ 0.99` (more ambitiously `≥ 0.01`, or smaller)?\n-- Green only asks the open-ended \"what can be said about `a`?\", suggesting \"perhaps `a` must be\n-- almost constant\". Since \"almost constant\" is not made precise and a faithful encoding would\n-- require choosing an interpretation, this is left as a TODO to formalize.\n\n-- TODO: [Gr24, Comments to Problem 43] Green observes (unpublished) that, by arguments of\n-- Bourgain, progress for `α ≈ 1` would imply the Kakeya conjecture. Formalising this implication\n-- requires a precise statement of the Kakeya conjecture and is left for future work.\n\n-- TODO: Check the primary sources for further variants. (1) The favourite variant is \"raised in\n-- [AP92]\" (Alon–Peres, *Uniform dilations*, GAFA 1992); that paper is not freely available and\n-- has not been checked here for additional uniform-dilation conjectures. (2) [Gr18, Section 4]\n-- (where Problem 43 is formulated) raises, in the remarks to its bilinear estimate, the related\n-- auxiliary open problem `∑_{n ≤ X} μ(n) Λ(n - 1) = o(X)` (\"the heart of the matter\"). These\n-- are left as TODOs to formalize.\n\nend Green43\n",
  "statement_hash": "fc76bb66d717c9be4f96a1960589b66da3501830716b210daf04feb59f013f55",
  "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."
}