Description: There exists a unique decomposition of a prime as a sum of squares of two different nonnegative integers iff P == 1 (mod 4). (Contributed by AV, 10-Jun-2023) The prime needs not be odd, as observed by WL. (Revised by AV, 25-Jun-2023)
Ref | Expression | ||
---|---|---|---|
Hypothesis | 2sqreult.1 | |
|
Assertion | 2sqreultb | |
Step | Hyp | Ref | Expression |
---|---|---|---|
1 | 2sqreult.1 | |
|
2 | 2sqreultblem | |
|
3 | 1 | bicomi | |
4 | 3 | reubii | |
5 | 4 | reubii | |
6 | 5 | a1i | |
7 | 1 | 2sqreulem4 | |
8 | 2reu1 | |
|
9 | 7 8 | mp1i | |
10 | 2 6 9 | 3bitrd | |