Documentation
Atlas
.
AlgebraNotes
.
code
.
FactorizationNoetherian
Search
return to top
source
Imports
Init
Mathlib
Imported by
FactorizationNoetherian
.
sum_of_two_squares_iff
source
theorem
FactorizationNoetherian
.
sum_of_two_squares_iff
{
n
:
ℕ
}
:
(∃ (
x
:
ℕ
) (
y
:
ℕ
),
n
=
x
^
2
+
y
^
2
)
↔
∀
q
∈
n
.
primeFactors
,
q
%
4
=
3
→
Even
(
padicValNat
q
n
)