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|y2=x0yiy+

Detailed syntax breakdown

Step Hyp Ref Expression
0 csqrt class
1 vx setvarx
2 cc class
3 vy setvary
4 3 cv setvary
5 cexp class^
6 c2 class2
7 4 6 5 co classy2
8 1 cv setvarx
9 7 8 wceq wffy2=x
10 cc0 class0
11 cle class
12 cre class
13 4 12 cfv classy
14 10 13 11 wbr wff0y
15 ci classi
16 cmul class×
17 15 4 16 co classiy
18 crp class+
19 17 18 wnel wffiy+
20 9 14 19 w3a wffy2=x0yiy+
21 20 3 2 crio classιy|y2=x0yiy+
22 1 2 21 cmpt classxιy|y2=x0yiy+
23 0 22 wceq wff=xιy|y2=x0yiy+