Metamath Proof Explorer


Theorem sq11

Description: The square function is one-to-one for nonnegative reals. (Contributed by NM, 8-Apr-2001) (Proof shortened by Mario Carneiro, 28-May-2016)

Ref Expression
Assertion sq11 A 0 A B 0 B A 2 = B 2 A = B

Proof

Step Hyp Ref Expression
1 simpl A 0 A A
2 1 recnd A 0 A A
3 sqval A A 2 = A A
4 2 3 syl A 0 A A 2 = A A
5 simpl B 0 B B
6 5 recnd B 0 B B
7 sqval B B 2 = B B
8 6 7 syl B 0 B B 2 = B B
9 4 8 eqeqan12d A 0 A B 0 B A 2 = B 2 A A = B B
10 msq11 A 0 A B 0 B A A = B B A = B
11 9 10 bitrd A 0 A B 0 B A 2 = B 2 A = B