Description: Lagrange's four-square theorem, or Bachet's conjecture: every nonnegative integer is expressible as a sum of four squares. This is Metamath 100 proof #19. (Contributed by Mario Carneiro, 16-Jul-2014)
Ref | Expression | ||
---|---|---|---|
Assertion | 4sq | |
Step | Hyp | Ref | Expression |
---|---|---|---|
1 | eqeq1 | |
|
2 | 1 | 2rexbidv | |
3 | 2 | 2rexbidv | |
4 | 3 | cbvabv | |
5 | 4 | 4sqlem19 | |
6 | 5 | 4sqlem2 | |