Metamath Proof Explorer


Theorem eqsqrtor

Description: Solve an equation containing a square. (Contributed by Mario Carneiro, 23-Apr-2015)

Ref Expression
Assertion eqsqrtor A B A 2 = B A = B A = B

Proof

Step Hyp Ref Expression
1 sqrtth B B 2 = B
2 1 adantl A B B 2 = B
3 2 eqeq2d A B A 2 = B 2 A 2 = B
4 sqrtcl B B
5 sqeqor A B A 2 = B 2 A = B A = B
6 4 5 sylan2 A B A 2 = B 2 A = B A = B
7 3 6 bitr3d A B A 2 = B A = B A = B