Description: All primes of the form 4 k + 1 are sums of two squares. This is Metamath 100 proof #20. (Contributed by Mario Carneiro, 20-Jun-2015)
Ref | Expression | ||
---|---|---|---|
Assertion | 2sq | |
Step | Hyp | Ref | Expression |
---|---|---|---|
1 | eqid | |
|
2 | oveq1 | |
|
3 | 2 | eqeq1d | |
4 | oveq1 | |
|
5 | 4 | oveq1d | |
6 | 5 | eqeq2d | |
7 | 3 6 | anbi12d | |
8 | oveq2 | |
|
9 | 8 | eqeq1d | |
10 | oveq1 | |
|
11 | 10 | oveq2d | |
12 | 11 | eqeq2d | |
13 | 9 12 | anbi12d | |
14 | 7 13 | cbvrex2vw | |
15 | 14 | abbii | |
16 | 1 15 | 2sqlem11 | |
17 | 1 | 2sqlem2 | |
18 | 16 17 | sylib | |