Description: Explicit formula for the complex square root in terms of the square root of nonnegative reals. The right side is slightly more compact than sqrtcval . (Contributed by RP, 18-May-2024)
Ref | Expression | ||
---|---|---|---|
Assertion | sqrtcval2 | |
Step | Hyp | Ref | Expression |
---|---|---|---|
1 | sqrtcval | |
|
2 | ovif2 | |
|
3 | neg1cn | |
|
4 | ax-icn | |
|
5 | 4 | mulm1i | |
6 | 3 4 5 | mulcomli | |
7 | 4 | mulid1i | |
8 | ifeq12 | |
|
9 | 6 7 8 | mp2an | |
10 | 2 9 | eqtr2i | |
11 | 10 | a1i | |
12 | 11 | oveq1d | |
13 | 4 | a1i | |
14 | neg1rr | |
|
15 | 1re | |
|
16 | 14 15 | ifcli | |
17 | 16 | a1i | |
18 | 17 | recnd | |
19 | sqrtcvallem3 | |
|
20 | 19 | recnd | |
21 | 13 18 20 | mulassd | |
22 | 12 21 | eqtrd | |
23 | 22 | oveq2d | |
24 | 1 23 | eqtr4d | |