Left to Solve
Problems / MathOverflow (not formalized)

Exactly Counting the Number of Lattice Points in an $n$-Dimensional Sphere

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

Statement

Let denote the number of lattice points in an -dimensional "sphere" with radius . For clarification, I am interested in lattice points found both strictly inside the sphere, and on its surface. I want to count exactly how many such points there are. This count corresponds to the amount of sets of integers that are solutions to the equation where the 's are required to be integers, not necessarily positive, and sets that differ just by the order of the summands are also considered distinct, i.e for the case , the following are both counted: and . This can also be interpreted as the sum of squares function - denotes in how many such ways I can write as the sum of squares. This means that

I am asking this question as a general one, but I am mostly concerned about the cases of .

In order not to be too lengthy and remain focused, I won't explain why but summing this way requires to factor each first. This is very time consuming, so I searched for better ways.

For the case of , which is essentially …

Posed by MC From Scratch · ag.algebraic-geometry, nt.number-theory, co.combinatorics, computational-complexity

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

import Mathlib

/-!
# Exactly Counting the Number of Lattice Points in an $n$-Dimensional Sphere

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

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

theorem main : sorry := by
  sorry

end OMA.S_mo_331815