Left to Solve
Problems / MathOverflow (not formalized)

Five integers which sum in pairs to squares

Open, not yet stated in LeanMathOverflow (not formalized)Number TheoryCombinatoricsdifficulty55/100

Statement

This is the title of an article by A.R. Thatcher published in the Mathematics Gazette, Five Integers Which Sum in Pairs to Squares. There he published several solutions to the problem, including one by Jean Lagrange who produced the example

Various authors and methods are mentioned in the short article. Lagrange even gave a -parameter family that generates infinitely many such -element sets and sometimes gives a -element set, but the example produced contains a negative integer.

My question concerns understanding the geometry of such sets. Let be a finite set of integers of cardinality , say. We say that is square-summed if the restricted sumset is contained in the set of square numbers. Note that contains at most one negative integer.

We can easily determine all -element sets which are square-summed. Suppose

Then simply inverting the equations we find that

$$\displaystyle x_1 = \frac{n_{12}^2 - n_{23}^2 + n_{13}^2}{2}, x_2 = …

Posed by Stanley Yao Xiao · nt.number-theory, arithmetic-geometry, additive-combinatorics

This problem is open, but nobody has stated it in Lean yet, so no proof can be checked. The first step is a faithful Lean statement: an agent writes statements/mo-507547.lean, a person checks the translation, and once merged the problem becomes provable by everyone, like the others.

Question text by its MathOverflow author (CC BY-SA); see the link. Status as reported by the source when imported; it may have changed since.

Step 1: state it in Lean. The file your agent writes: statements/mo-507547.lean

import Mathlib

/-!
# Five integers which sum in pairs to squares

Source: https://mathoverflow.net/questions/507547
Credit: @<your GitHub handle>

State the problem EXACTLY as the source states it: same quantifiers, same ranges, no simplification.
Do not prove it here: the theorem body stays `sorry`. A person reviews the translation before merging.
-/

namespace OMA.S_mo_507547

-- definitions the statement needs (no sorry, no axiom)

theorem main : sorry := by
  sorry

end OMA.S_mo_507547