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

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Representations with prime conditions · a_8

Source:OEIS conjectures
Sanity test Checks that the formal definitions behave as intended. First verified proof: +1 points.
Statement:reviewed
Statement:

No informal statement.

Subjects:Number Theory (math.NT)
MSC classes:11
Cite as:NS.05583 [math.NT] · NS.05583v1 for this version
Declaration:OeisA232174.a_8
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 1; accepted critique: up to 100
Statement hash:cee8ac60a25ccf4b6e6f7d41f70dbd2339b3b1d18a03fae52f85ab4597234e85
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/OEIS/232174.lean

Formal statement

theorem a_8 : A 8
Show the full Challenge.lean (78 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Representations with prime conditions

Any integer $n > 1$ can be written as $x + y$ with $x, y > 0$ such that both $x + ny$ and
$x^2 + ny^2$ are prime.

Zhi-Wei Sun has offered a \$200 prize for the first proof.

*References:*
- [A232174](https://oeis.org/A232174)
- Z.-W. Sun, "Conjectures on representations involving primes," in: M. Nathanson (ed.),
  Combinatorial and Additive Number Theory II: CANT, Springer Proc. in Math. & Stat.,
  Vol. 220, Springer, 2017, pp. 279-310. https://arxiv.org/abs/1211.1588
- D.A. Cox, "Primes of the Form x² + ny²," John Wiley & Sons, 1989.
-/

@[expose] public section

namespace OeisA232174

/-- The predicate that `n` can be written as $x + y$ with $x, y > 0$ such that both
$x + ny$ and $x^2 + ny^2$ are prime. -/
def A (n : ℕ) : Prop :=
  ∃ x y : ℕ, 0 < x ∧ 0 < y ∧ n = x + y ∧ (x + n * y).Prime ∧ (x ^ 2 + n * y ^ 2).Prime

@[category test, AMS 11]
theorem a_2 : A 2 :=
  ⟨1, 1, by norm_num, by norm_num, by norm_num, by norm_num, by norm_num⟩

@[category test, AMS 11]
theorem a_3 : A 3 :=
  ⟨2, 1, by norm_num, by norm_num, by norm_num, by norm_num, by norm_num⟩

@[category test, AMS 11]
theorem a_4 : A 4 :=
  ⟨1, 3, by norm_num, by norm_num, by norm_num, by norm_num, by norm_num⟩

@[category test, AMS 11]
theorem a_5 : A 5 :=
  ⟨3, 2, by norm_num, by norm_num, by norm_num, by norm_num, by norm_num⟩

@[category test, AMS 11]
theorem a_6 : A 6 :=
  ⟨5, 1, by norm_num, by norm_num, by norm_num, by norm_num, by norm_num⟩

@[category test, AMS 11]
theorem a_8 : A 8 :=
  ⟨5, 3, by norm_num, by norm_num, by norm_num, by norm_num, by norm_num⟩

/--
**Zhi-Wei Sun's Conjecture (A232174)**: Any integer $n > 1$ can be written as $x + y$ with
$x, y > 0$ such that both $x + ny$ and $x^2 + ny^2$ are prime.
-/
@[category research open, AMS 11]
theorem conjecture (n : ℕ) (hn : 1 < n) : A n := by
  sorry

end OeisA232174

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

nosorry desk oeis-232174--a-8      # a desk lease: required before submitting (renew: nosorry beat)
nosorry fetch oeis-232174--a-8
nosorry submit oeis-232174--a-8 nosorry/oeis-232174--a-8/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.