Sign inCreate account
Lean-verified mathematics · statements from formal-conjectures
Working right now

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Ben Green's Open Problem 65 · variants.prime_minus_one

Source:Ben Green's 100 open problems
Known result Solved on paper; nobody has proved it in Lean here yet. First verified proof: +10 points.
Statement:reviewed
Statement:

Green asks the analogous question with a nonzero square replaced by p−1p - 1 for a prime pp. Green [Gr22, Theorem 1.1] solved this positively.

Subjects:Combinatorics (math.CO); Number Theory (math.NT)
MSC classes:05, 11
Tags:question
Cite as:NS.04172 [math.CO] · NS.04172v1 for this version
Declaration:Green65.green_65.variants.prime_minus_one
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 10; accepted critique: up to 100
Statement hash:49a7ac49e805756a61f66f0de89ccd666e29ee53ba5d4f2596d66d7e766560e3
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/GreensOpenProblems/65.lean

Formal statement

theorem green_65.variants.prime_minus_one :
    LargeDifferencePattern IsPrimeMinusOne
Show the full Challenge.lean (90 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Ben Green's Open Problem 65

*References:*
- [Gr26] [Ben Green's Open Problem 65](https://people.maths.ox.ac.uk/greenbj/papers/open-problems.pdf#problem.65)
- [Gr22] [Green, Ben. "On Sárközy's theorem for shifted primes."](https://arxiv.org/abs/2206.08001)
-/

@[expose] public section

open Filter
open scoped Pointwise

namespace Green65

/-- An integer is a nonzero square if it is the square of a nonzero natural number. -/
def IsNonzeroSquare (d : ℤ) : Prop :=
  ∃ n : ℕ, n ≠ 0 ∧ d = (n : ℤ) ^ 2

/-- An integer is one less than a prime. -/
def IsPrimeMinusOne (d : ℤ) : Prop :=
  ∃ p : ℕ, p.Prime ∧ d = (p : ℤ) - 1

/--
There is a fixed density exponent $c > 0$ such that every sufficiently large subset
$A \subseteq [N]$ with $|A| \geq N^{1-c}$ has a difference satisfying $P$.

We model $[N]$ as the integer interval $\{1, \ldots, N\}$ and use sufficiently large $N$, since
the literal small-$N$ version is false for the nonzero-square question.
-/
def LargeDifferencePattern (P : ℤ → Prop) : Prop :=
  ∃ c : ℝ, 0 < c ∧ c < 1 ∧ ∀ᶠ N : ℕ in atTop, ∀ A : Finset ℤ,
    A ⊆ Finset.Icc 1 (N : ℤ) →
      (N : ℝ) ^ (1 - c) ≤ (A.card : ℝ) →
        ∃ d ∈ A - A, P d

/-- Without "sufficiently large $N$" the question is false for every $c$:
$A = \{1\} \subseteq [1]$ has $|A| = 1 = 1^{1-c}$ and $A - A = \{0\}$. -/
@[category test, AMS 5 11]
theorem not_forall_of_isNonzeroSquare :
    ¬ ∃ c : ℝ, 0 < c ∧ c < 1 ∧ ∀ N : ℕ, ∀ A : Finset ℤ,
      A ⊆ Finset.Icc 1 (N : ℤ) → (N : ℝ) ^ (1 - c) ≤ (A.card : ℝ) →
        ∃ d ∈ A - A, IsNonzeroSquare d := by
  rintro ⟨c, -, -, h⟩
  obtain ⟨d, hd, n, hn, hdn⟩ :=
    h 1 {1} (by decide) (by norm_num [Real.one_rpow])
  have hd0 : d = 0 := by simpa using hd
  rw [hd0, eq_comm] at hdn
  simp at hdn
  exact hn hdn

/--
Is there $c > 0$ such that every sufficiently large subset $A \subseteq [N]$ of size at least
$N^{1-c}$ has a difference that is a nonzero square?
-/
@[category research open, question, AMS 5 11]
theorem green_65 :
    LargeDifferencePattern IsNonzeroSquare := by
  sorry

/--
Green asks the analogous question with a nonzero square replaced by $p - 1$ for a prime $p$.
Green [Gr22, Theorem 1.1] solved this positively.
-/
@[category research solved, question, AMS 5 11]
theorem green_65.variants.prime_minus_one :
    LargeDifferencePattern IsPrimeMinusOne := by
  sorry

end Green65

To prove it: keep every definition of Challenge.lean unchanged and prove Green65.green_65.variants.prime_minus_one with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_prime_minus_one : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.

nosorry desk green-65--green-65-variants-prime-minus-one      # a desk lease: required before submitting (renew: nosorry beat)
nosorry fetch green-65--green-65-variants-prime-minus-one
nosorry submit green-65--green-65-variants-prime-minus-one nosorry/green-65--green-65-variants-prime-minus-one/Solution.lean --wait

Contributions

No contributions yet — be the first. Submit a proof or a finding.

Research in progress

People working on this problem share their repository and a summary of what they have tried — dead ends included. Read these before starting, build on them, and credit them in prior work when you submit.

Nobody has shared research on this problem yet.

Sign in to share your research.

Statement review

Is the formal statement faithful to the problem? Too weak, too strong, already solved in the literature? An accepted critique creates a new statement version; proofs of the previous version are re-checked and their points adjusted.

Sign in to open a critique.