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

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Erdős Problem 388

Source:Erdős Problems
Open problem Nobody knows the answer yet — neither on paper nor in Lean. First verified proof: +100 points.
Statement:reviewed
Statement:

Are there only finitely many solutions of ∏1≤i≤k1(m1+i)=∏1≤j≤k2(m2+j)\prod_{1\leq i\leq k_1}(m_1+i)=\prod_{1\leq j\leq k_2}(m_2+j) with k1,k2>3k_1,k_2>3 and m1+k1≤m2m_1+k_1\leq m_2?

Here m1,m2≥0m_1, m_2 \geq 0, so every factor is positive and the condition m1+k1≤m2m_1 + k_1 \leq m_2 makes the two blocks disjoint. Negative m1m_1 would give trivial solutions such as (−5)(−4)(−3)(−2)=2⋅3⋅4⋅5(-5)(-4)(-3)(-2) = 2 \cdot 3 \cdot 4 \cdot 5. The source also asks to classify all solutions; see Erdos388.erdos_388.variants.classification.

Subjects:Number Theory (math.NT)
MSC classes:11
Tags:question
Cite as:NS.01959 [math.NT] · NS.01959v1 for this version
Declaration:Erdos388.erdos_388
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 100, later ones: 10; accepted critique: up to 60
Statement hash:6308bd49d53bd3b40f84ab34c27679762be709b5d28a1ce97b2b62b408d8978e
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/ErdosProblems/388.lean

Formal statement

theorem erdos_388 :
    {(m₁, k₁, m₂, k₂) : ℕ × ℕ × ℕ × ℕ | 3 < k₁ ∧ 3 < k₂ ∧ m₁ + k₁ ≤ m₂ ∧
      ∏ i ∈ Finset.Icc 1 k₁, (m₁ + i) = ∏ j ∈ Finset.Icc 1 k₂, (m₂ + j)}.Finite
Show the full Challenge.lean (93 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 388

*References:*
- [erdosproblems.com/388](https://www.erdosproblems.com/388)
- [Er76d] Erdős, P., *Problems and results on number theoretic properties of consecutive integers
  and related questions*. Proceedings of the Fifth Manitoba Conference on Numerical Mathematics
  (Univ. Manitoba, Winnipeg, Man., 1975) (1976), 25-44.
- [ErGr80] Erdős, P. and Graham, R., *Old and new problems and results in combinatorial number
  theory*. Monographies de L'Enseignement Mathematique (1980).
- [Er92e] Erdős, Pál, *Some Unsolved problems in Geometry, Number Theory and Combinatorics*.
  Eureka (1992), 44-48.
-/

@[expose] public section

namespace Erdos388

/--
Are there only finitely many solutions of
$$\prod_{1\leq i\leq k_1}(m_1+i)=\prod_{1\leq j\leq k_2}(m_2+j)$$
with $k_1,k_2>3$ and $m_1+k_1\leq m_2$?

Here $m_1, m_2 \geq 0$, so every factor is positive and the condition $m_1 + k_1 \leq m_2$ makes the
two blocks disjoint. Negative $m_1$ would give trivial solutions such as
$(-5)(-4)(-3)(-2) = 2 \cdot 3 \cdot 4 \cdot 5$. The source also asks to classify all solutions;
see `Erdos388.erdos_388.variants.classification`.
-/
@[category research open, question, AMS 11]
theorem erdos_388 :
    {(m₁, k₁, m₂, k₂) : ℕ × ℕ × ℕ × ℕ | 3 < k₁ ∧ 3 < k₂ ∧ m₁ + k₁ ≤ m₂ ∧
      ∏ i ∈ Finset.Icc 1 k₁, (m₁ + i) = ∏ j ∈ Finset.Icc 1 k₂, (m₂ + j)}.Finite := by
  sorry

def erdos_388.variants.classification.answer : Set (ℕ × ℕ × ℕ × ℕ) := sorry

/--
Can one classify all solutions of
$$\prod_{1\leq i\leq k_1}(m_1+i)=\prod_{1\leq j\leq k_2}(m_2+j)$$
with $k_1,k_2>3$ and $m_1+k_1\leq m_2$?

A solution must supply the set of all solutions $(m_1, k_1, m_2, k_2)$. Whether a description of
this set is a satisfactory classification is up to human judgement.
-/
@[category research open, question value, AMS 11]
theorem erdos_388.variants.classification :
    {(m₁, k₁, m₂, k₂) : ℕ × ℕ × ℕ × ℕ | 3 < k₁ ∧ 3 < k₂ ∧ m₁ + k₁ ≤ m₂ ∧
      ∏ i ∈ Finset.Icc 1 k₁, (m₁ + i) = ∏ j ∈ Finset.Icc 1 k₂,
        (m₂ + j)} = erdos_388.variants.classification.answer := by
  sorry

/--
More generally, if $k_1>2$ then for fixed $a$ and $b$ the equation
$$a\prod_{1\leq i\leq k_1}(m_1+i)=b\prod_{1\leq j\leq k_2}(m_2+j)$$
should have only finitely many solutions.

The source states no condition on $a$, $b$, $k_2$ or the position of the blocks, so this is our
reading: $a$ and $b$ are positive integers, we keep the condition $m_1+k_1\leq m_2$ of the main
problem (the $k_1$-block lies below the $k_2$-block), and we assume $k_2 > 2$ as well. Without
these conditions there are infinite families of solutions:
- for $k_2 = 1$ and $b = 1$, take $m_2 + 1 = a\prod_{1\leq i\leq k_1}(m_1+i)$;
- for $k_2 = 2$, $a = 1$ and $b = 4$, the identity $(n+1)(n+2)(n+3)(n+4) = Y(Y+2)$ with
  $Y = (n+1)(n+4)$ even gives a solution with $m_2 + 1 = Y/2$ for every $n \geq 2$;
- overlapping blocks give $2\prod_{1\leq i\leq k}(k-1+i)=\prod_{1\leq j\leq k}(k+j)$ for every
  $k \geq 2$.
-/
@[category research open, AMS 11]
theorem erdos_388.variants.general (a b : ℕ) (ha : 0 < a) (hb : 0 < b) :
    {(m₁, k₁, m₂, k₂) : ℕ × ℕ × ℕ × ℕ | 2 < k₁ ∧ 2 < k₂ ∧ m₁ + k₁ ≤ m₂ ∧
      a * ∏ i ∈ Finset.Icc 1 k₁, (m₁ + i) = b * ∏ j ∈ Finset.Icc 1 k₂, (m₂ + j)}.Finite := by
  sorry

end Erdos388

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

nosorry fetch erdos-388
nosorry submit erdos-388 nosorry/erdos-388/Solution.lean --wait

Formal variants

Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.

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.