Metamath Proof Explorer


Definition df-sqrt

Description: Define a function whose value is the square root of a complex number. For example, ( sqrt2 5 ) = 5 ( ex-sqrt ).

Since ( y ^ 2 ) = x iff ( -u y ^ 2 ) = x , we ensure uniqueness by restricting the range to numbers with positive real part, or numbers with 0 real part and nonnegative imaginary part. A description can be found under "Principal square root of a complex number" at http://en.wikipedia.org/wiki/Square_root . The square root symbol was introduced in 1525 by Christoff Rudolff.

See sqrtcl for its closure, sqrtval for its value, sqrtth and sqsqrti for its relationship to squares, and sqrt11i for uniqueness. (Contributed by NM, 27-Jul-1999) (Revised by Mario Carneiro, 8-Jul-2013)

Ref Expression
Assertion df-sqrt = x ι y | y 2 = x 0 y i y +

Detailed syntax breakdown

Step Hyp Ref Expression
0 csqrt class
1 vx setvar x
2 cc class
3 vy setvar y
4 3 cv setvar y
5 cexp class ^
6 c2 class 2
7 4 6 5 co class y 2
8 1 cv setvar x
9 7 8 wceq wff y 2 = x
10 cc0 class 0
11 cle class
12 cre class
13 4 12 cfv class y
14 10 13 11 wbr wff 0 y
15 ci class i
16 cmul class ×
17 15 4 16 co class i y
18 crp class +
19 17 18 wnel wff i y +
20 9 14 19 w3a wff y 2 = x 0 y i y +
21 20 3 2 crio class ι y | y 2 = x 0 y i y +
22 1 2 21 cmpt class x ι y | y 2 = x 0 y i y +
23 0 22 wceq wff = x ι y | y 2 = x 0 y i y +