Index of theproofnetwork/open-problems@860a535/FormalConjectures/GreensOpenProblems/Green65.lean

qedmarket’s copy of theproofnetwork/open-problems@860a535, 30 Nov 2026original source ↗

89 lines · 3.1 kBraw
/-Copyright 2026 The Formal Conjectures Authors. Licensed under the Apache License, Version 2.0 (the "License");you may not use this file except in compliance with the License.You may obtain a copy of the License at     https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, softwaredistributed under the License is distributed on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the specific language governing permissions andlimitations under the License.-/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 Filteropen 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$, sincethe 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

download (.tar)