Is there another simple formula for the sum-of-squares function?
Statement
The sum-of-squares function (denoted ) gives the number of ways in which a given number is expressible as the sum of two squares. The following is from the article on this function from Wolfram Mathworld.
To find the the number of representations of as the sum of two squares (ignoring order and signs), factor as
where s are primes of the form and s are primes of the form . If does not have such a representation with integer because one or more of the powers of is odd, then there are no representations. Otherwise, define Then, the required number will be if any is a half-integer, if all are integers and is even, and if all are integers and is odd.
Now the questions I want to ask are two.
• If I want to write an algorithm to find out the value of this function at a large integer, then using the above definition wouldn't give the best result since it is required to factor the integer first, and Integer Factorization is known to …
Posed by Koundinya Vajjha · nt.number-theory, sums-of-squares
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-63032.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-63032.lean
import Mathlib /-! # Is there another simple formula for the sum-of-squares function? Source: https://mathoverflow.net/questions/63032 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_63032 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_mo_63032