let z1, z2 be Complex; :: thesis: ( Re z1 >= 0 & Re z2 >= 0 & Im z1 >= 0 & Im z2 >= 0 & z1 ^2 = z2 ^2 & z1 ^2 is Real implies z1 = z2 )
assume A1: ( Re z1 >= 0 & Re z2 >= 0 & Im z1 >= 0 & Im z2 >= 0 & z1 ^2 = z2 ^2 & z1 ^2 is Real & z1 <> z2 ) ; :: thesis: contradiction
A2: ( z1 ^2 = z1 * z1 & z2 ^2 = z2 * z2 ) by SQUARE_1:def 1;
A3: Re (z1 * z1) = ((Re z1) * (Re z1)) - ((Im z1) * (Im z1)) by COMPLEX1:9;
A4: Re (z2 * z2) = ((Re z2) * (Re z2)) - ((Im z2) * (Im z2)) by COMPLEX1:9;
A5: Re (z1 * z1) = Re (z2 * z2) by A2, A1;
A6: 0 = Im (z2 ^2) by A1, COMPLEX1:def 2
.= Im (z2 * z2) by SQUARE_1:def 1
.= ((Im z2) * (Re z2)) + ((Im z2) * (Re z2)) by COMPLEX1:9 ;
0 = Im (z1 ^2) by A1, COMPLEX1:def 2
.= ((Im z1) * (Re z1)) + ((Im z1) * (Re z1)) by A2, COMPLEX1:9 ;
per cases then ( ( Im z1 = 0 & Im z2 = 0 ) or ( Im z1 = 0 & Re z2 = 0 ) or ( Im z2 = 0 & Re z1 = 0 ) or ( Re z1 = 0 & Re z2 = 0 ) ) by A6;
suppose A7: ( Im z1 = 0 & Im z2 = 0 ) ; :: thesis: contradiction
then ( (Re z1) ^2 = (Re z1) * (Re z1) & (Re z1) * (Re z1) = (Re z2) * (Re z2) & (Re z2) * (Re z2) = (Re z2) ^2 ) by A1, A3, A4, A2, SQUARE_1:def 1;
then A8: ( Re z1 = Re z2 or Re z1 = - (Re z2) ) by SQUARE_1:40;
then Re z1 = 0 by A1, A7, COMPLEX1:def 3;
hence contradiction by A7, A1, A8, COMPLEX1:def 3; :: thesis: verum
end;
suppose A9: ( Im z1 = 0 & Re z2 = 0 ) ; :: thesis: contradiction
end;
suppose A11: ( Im z2 = 0 & Re z1 = 0 ) ; :: thesis: contradiction
end;
suppose A13: ( Re z1 = 0 & Re z2 = 0 ) ; :: thesis: contradiction
then ( (Im z1) ^2 = (Im z1) * (Im z1) & (Im z1) * (Im z1) = (Im z2) * (Im z2) & (Im z2) * (Im z2) = (Im z2) ^2 ) by A3, A4, A5, SQUARE_1:def 1;
then A14: ( Im z1 = Im z2 or Im z1 = - (Im z2) ) by SQUARE_1:40;
then Im z1 = 0 by A1, A13, COMPLEX1:def 3;
hence contradiction by A13, A1, A14, COMPLEX1:def 3; :: thesis: verum
end;
end;