Left to Solve
Problems / MathOverflow (not formalized)

A possible variant of Zagier's one-sentence proof for Fermat's sum of two squares theorem?

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

Statement

Is it possible to modify Zagier's one-sentence proof of Fermat's sum of two squares theorem (see here) to prove certain non-trivial cases of Jacobi's four-square theorem (see here)?

Let be a prime number with and define the set

Zagier gave a very short proof of the fact is a sum of two squares of integers by constructing two involutions and on this set . The involution is a quite obvious one, sending to ; while is less obvious: if , ; if , ; if , .

Yet there is still a geometric interpretation of (see here).

There have been some generalizations of this proof to the case expressed as (see for example here). Maybe there are other cases that I am not aware of.

My question is mainly about possible generalization of Zagier's proof to Jacobi's four-squares theorem. Let be an odd prime, then this theorem states that the number of solutions such that is exactly …

Posed by Mathew · nt.number-theory, analytic-number-theory, prime-numbers, quadratic-forms

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-469474.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-469474.lean

import Mathlib

/-!
# A possible variant of Zagier's one-sentence proof for Fermat's sum of two squares theorem?

Source: https://mathoverflow.net/questions/469474
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_469474

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

theorem main : sorry := by
  sorry

end OMA.S_mo_469474