Metamath Proof Explorer


Theorem nn0sqeq1

Description: A natural number with square one is equal to one. (Contributed by Thierry Arnoux, 2-Feb-2020) (Proof shortened by Thierry Arnoux, 6-Jun-2023)

Ref Expression
Assertion nn0sqeq1 N 0 N 2 = 1 N = 1

Proof

Step Hyp Ref Expression
1 simpr N 0 N 2 = 1 N 2 = 1
2 1 fveq2d N 0 N 2 = 1 N 2 = 1
3 nn0re N 0 N
4 nn0ge0 N 0 0 N
5 sqrtsq N 0 N N 2 = N
6 3 4 5 syl2anc N 0 N 2 = N
7 6 adantr N 0 N 2 = 1 N 2 = N
8 sqrt1 1 = 1
9 8 a1i N 0 N 2 = 1 1 = 1
10 2 7 9 3eqtr3d N 0 N 2 = 1 N = 1