Skip to content

feat(ErdosProblems/399): prove erdos_399.variants.cambie - #5425

Merged
mo271 merged 1 commit into
google-deepmind:mainfrom
herakles-dev:fix/erdos-399-cambie
Sep 18, 2026
Merged

mo271 merged 1 commit into
google-deepmind:mainfrom
herakles-dev:fix/erdos-399-cambie

Conversation

@herakles-dev

@herakles-dev herakles-dev commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

Fills the sorry in erdos_399.variants.cambie. The docstring already spells out
Cambie's argument ("considerations modulo 8 rule out any solutions"), so this just
formalises it directly.

Sketch: z^4 % 8 = z % 2, so coprimality (⇒ x, y not both even) gives
x^4 + y^4 ≡ 1 or 2 (mod 8), never 0; but 8 ∣ n! for n ≥ 4 (4! ∣ n!, 8 ∣ 24).
The n ≤ 3 cases are just n! ≤ 6 < 16 ≤ x^4 + y^4.

Only core Mathlib, no new imports; the statement and @[category] tag are unchanged.
lake build is clean — no errors or warnings, no sorry — and #print axioms gives the
usual {propext, Classical.choice, Quot.sound}.

It's ~40 lines, a bit longer than the shortest fills here but elementary throughout. Happy
to move it to a linked @[formal_proof] instead if you'd rather keep the file lean.

AI usage (per CONTRIBUTING → Mathlib's policy): the proof was developed with Claude (Anthropic); I've been through it, and as with any Lean proof the trust is in the kernel — #print axioms gives the standard trio with no sorryAx.

Formalise the mod-8 argument already described in the docstring: coprimality
forces x, y not both even, so x^4 + y^4 ≡ 1 or 2 (mod 8) while 8 ∣ n! for n ≥ 4;
the n ≤ 3 cases are bounded directly. Core Mathlib only, no new imports.
@github-actions github-actions Bot added the erdos-problems Erdős Problems label Sep 10, 2026

@mo271 mo271 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, LGTM!

@mo271
mo271 enabled auto-merge September 18, 2026 12:38
@mo271
mo271 added this pull request to the merge queue Sep 18, 2026
Merged via the queue into google-deepmind:main with commit 285e85e Sep 18, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

erdos-problems Erdős Problems

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants