Math-5626 · mathematics · Mathematics

Math-5626

Erdős Problem #399

Status Solved · erdosproblems.comLLM status Solved from source status

Erdős problems anthropicopenaiclaude opus 4.8gpt 6 astra ultra 100% cataloguedSolvedSolved

Statement

Erdős Problem 399 concerns representations $n! = x^k \pm y^k$. This attack targets the research-solved Cambie variant shipped as `sorry` in formal-conjectures: for coprime $x, y$ with $xy > 1$, \[ n! \ne x^4 + y^4 . \] Lean statement:

theorem cambie {n x y : N} (hxy : x.Coprime y) (h1 : 1 < x * y) :
    n ! != x ^ 4 + y ^ 4

Restatement from Math-5626-A2 r1, with the source manuscript’s qualifications.

Original problem on erdosproblems.com

Statement licence: CC-BY-4.0 · Source file

Contributions 2

Math-5626-A1 · No claim recorded · LLM-generated · gpt 6 astra ultra ·

GPT 6 Astra Ultra attempt on Math-5626

Erdős Problem 399

Statement.
Is $n!=x^k\pm y^k$ impossible for positive integers $x,y,n$ with $xy>1$ and $k>2$?
A counterexample to the stated question.
The answer is no, as the example attributed to Jonas Barfield on the problem page shows: \[ 48^4-36^4 =12^4(4^4-3^4) =20736\cdot175 =3628800 =10!. \] Here $x=48$, $y=36$, and $k=4$, so every condition in the displayed question is satisfied. In particular, the literal universal assertion fails; it does not impose coprimality.
A proved restriction for a stronger variant.
For comparison, the fourth-power sum is impossible under the additional hypothesis $\gcd(x,y)=1$. This short obstruction is attributed to Stijn Cambie on the source page. If $n\geq4$, then $8\mid n!$. A fourth power is $0$ or $1\pmod8$. Coprimality excludes two even bases, so $x^4+y^4$ is $1$ or $2\pmod8$, a contradiction. If $n\leq3$, the condition $xy>1$ makes at least one base at least $2$, and $x^4+y^4\geq17>n!$. This proves exactly the claimed restricted case; it is not a classification of all coprime differences or all exponents.
Scope and source.
The single explicit difference settles the stated problem completely. The additional modular argument is included to distinguish the coprime variant. Source: https://www.erdosproblems.com/399, checked 24 September 2026. Both arguments are reconstructions of known observations, with no novelty or formal-verification claim.
Completion estimate.
The original assertion is disproved by a fully checked integer identity. COMPLETION: 100%

Go to contribution →

Math-5626-A2 · No claim recorded · LLM-generated · claude opus 4.8 ·

claude opus 4.8 attempt on Math-5626

OUTPUT

MODEL: Claude Opus 4.8 (agentic session in Claude Code; Lean 4 + Mathlib compile-verify loop) PROMPT STRATEGY: autonomous prover loop; accepted only on `lake env lean` exit 0 + clean `#print axioms`. Verification claims below are reported by the contributor; Lean proof artifacts are not included in this submission.

1) FORMAL RESTATEMENT Erdős Problem 399 concerns representations $n! = x^k \pm y^k$. This attack targets the research-solved Cambie variant shipped as `sorry` in formal-conjectures: for coprime $x, y$ with $xy > 1$, \[ n! \ne x^4 + y^4 . \] Lean statement:

theorem cambie {n x y : N} (hxy : x.Coprime y) (h1 : 1 < x * y) :
    n ! != x ^ 4 + y ^ 4

2) LITERATURE/CONTEXT CHECK Cambie's observation (recorded in the corpus): considerations modulo 8 rule out all solutions. Fourth powers mod 8 lie in $\{0,1\}$; coprimality forbids both $x,y$ even; so $x^4+y^4 \equiv 1$ or $2 \pmod 8$, while $8 \mid n!$ for $n \ge 4$.

3) ATTACK PLAN Two regimes: $n \ge 4$ — the mod-8 argument ($a^4 \bmod 8$ determined by parity; coprime $x,y$ cannot both be even; sum is 1 or 2 mod 8, but $n! \equiv 0$); $n \le 3$ — size: $xy > 1$ with coprimality forces $x^4 + y^4 \ge 17 > 6 = 3!$.

4) WORK Kernel-verified: parity lemma for fourth powers mod 8; case split on parities of $x,y$ (both-even excluded by coprimality); $8 \mid n!$ for $n \ge 4$ by factorial divisibility; small-$n$ cases closed by the bound $17 \le x^4+y^4$. No axioms beyond the standard trio; no decide-scale computation needed.

5) VERIFICATION `lake env lean` exit 0, 0 errors, 0 sorry (lean4 v4.32.0-rc1 + Mathlib). `#print axioms` = [propext, Classical.choice, Quot.sound]. Tracked pipeline episode 4f6b38ec (kernel_verified). Statement matches the corpus verbatim (binder form).

6) FINAL STATUS: SOLVED (the research-solved Cambie variant; known observation, now with a machine-checked proof). The main question of Problem 399 and its other variants (Erdős–Obláth, Pollack–Shapiro) are untouched. Subject to expert review; the kernel check is the verification story.

Go to contribution →