:: COMPLEX1  semantic presentation
E1:  one  = 
 succ 0
by ORDINAL2:def 4
.= 
1
;
E2: 2 = 
 succ 1
.= 
(succ 0) \/ {1}
by ORDINAL1:def 1
.= 
({}  \/ {0}) \/ {1}
by ORDINAL1:def 1
.= 
{0,one }
by Lemma1, ENUMSET1:41
;
theorem Th1: :: COMPLEX1:1
canceled; 
theorem Th2: :: COMPLEX1:2
Lemma4: 
for b1, b2 being   Element of  REAL  holds  0 <= (b1 ^2 ) + (b2 ^2 )
 
definition
let c1 be  
complex  number ;
canceled;func  Re c1 ->    set  means :
Def2: 
:: COMPLEX1:def 2
a2 = a1 if a1 in  REAL  otherwise ex 
b1 being  
Function of 2, 
REAL  st 
( 
a1 = b1 & 
a2 = b1 . 0 );
existence 
( ( c1 in  REAL  implies ex b1 being   set  st b1 = c1 ) & ( not c1 in  REAL  implies ex b1 being   set ex b2 being  Function of 2, REAL  st 
( c1 = b2 & b1 = b2 . 0 ) ) )
 
uniqueness 
for b1, b2 being   set  holds 
 ( ( c1 in  REAL  & b1 = c1 & b2 = c1 implies b1 = b2 ) & ( not c1 in  REAL  & ex b3 being  Function of 2, REAL  st 
( c1 = b3 & b1 = b3 . 0 ) & ex b3 being  Function of 2, REAL  st 
( c1 = b3 & b2 = b3 . 0 ) implies b1 = b2 ) )
 ;
consistency 
for b1 being   set  holds  verum
 ;
func  Im c1 ->    set  means :
Def3: 
:: COMPLEX1:def 3
a2 = 0
 if a1 in  REAL  otherwise ex 
b1 being  
Function of 2, 
REAL  st 
( 
a1 = b1 & 
a2 = b1 . 1 );
existence 
( ( c1 in  REAL  implies ex b1 being   set  st b1 = 0 ) & ( not c1 in  REAL  implies ex b1 being   set ex b2 being  Function of 2, REAL  st 
( c1 = b2 & b1 = b2 . 1 ) ) )
 
uniqueness 
for b1, b2 being   set  holds 
 ( ( c1 in  REAL  & b1 = 0 & b2 = 0 implies b1 = b2 ) & ( not c1 in  REAL  & ex b3 being  Function of 2, REAL  st 
( c1 = b3 & b1 = b3 . 1 ) & ex b3 being  Function of 2, REAL  st 
( c1 = b3 & b2 = b3 . 1 ) implies b1 = b2 ) )
 ;
consistency 
for b1 being   set  holds  verum
 ;
 
end;
 
:: deftheorem Def1  COMPLEX1:def 1 : 
canceled; 
:: deftheorem Def2   defines Re COMPLEX1:def 2 : 
:: deftheorem Def3   defines Im COMPLEX1:def 3 : 
theorem Th3: :: COMPLEX1:3
canceled; 
theorem Th4: :: COMPLEX1:4
canceled; 
theorem Th5: :: COMPLEX1:5
Lemma8: 
for b1, b2 being   Element of  REAL  holds 
 (  Re [*b1,b2*] = b1 &  Im [*b1,b2*] = b2 )
 
Lemma9: 
for b1 being complex  number  holds  [*(Re b1),(Im b1)*] = b1
 
theorem Th6: :: COMPLEX1:6
canceled; 
theorem Th7: :: COMPLEX1:7
canceled; 
theorem Th8: :: COMPLEX1:8
canceled; 
theorem Th9: :: COMPLEX1:9
:: deftheorem Def4  COMPLEX1:def 4 : 
canceled; 
:: deftheorem Def5   defines = COMPLEX1:def 5 : 
:: deftheorem Def6   defines 0c COMPLEX1:def 6 : 
:: deftheorem Def7   defines 1r COMPLEX1:def 7 : 
:: deftheorem Def8   defines <i> COMPLEX1:def 8 : 
Lemma11: 
0 = [*0,0*]
 
by ARYTM_0:def 7;
Lemma12: 
 1r  = [*1,0*]
 
by ARYTM_0:def 7;
theorem Th10: :: COMPLEX1:10
canceled; 
theorem Th11: :: COMPLEX1:11
canceled; 
theorem Th12: :: COMPLEX1:12
theorem Th13: :: COMPLEX1:13
theorem Th14: :: COMPLEX1:14
canceled; 
theorem Th15: :: COMPLEX1:15
theorem Th16: :: COMPLEX1:16
canceled; 
theorem Th17: :: COMPLEX1:17
Lemma17: 
for b1 being real  number 
 for b2, b3 being   Element of  REAL   st b1 = [*b2,b3*] holds 
( b3 = 0 & b1 = b2 )
 
Lemma18: 
for b1, b2 being   Element of  REAL 
 for b3, b4 being real  number   st b1 = b3 & b2 = b4 holds 
 + b1,b2 = b3 + b4
 
Lemma19: 
for b1 being   Element of  REAL  holds   opp b1 =  - b1
 
Lemma20: 
for b1, b2 being   Element of  REAL 
 for b3, b4 being real  number   st b1 = b3 & b2 = b4 holds 
 * b1,b2 = b3 * b4
 
Lemma21: 
for b1, b2, b3 being   Element of  COMPLEX   st b3 = b1 + b2 holds 
 Re b3 = (Re b1) + (Re b2)
 
Lemma22: 
for b1, b2, b3 being   Element of  COMPLEX   st b3 = b1 + b2 holds 
 Im b3 = (Im b1) + (Im b2)
 
Lemma23: 
for b1, b2, b3 being   Element of  COMPLEX   st b3 = b1 * b2 holds 
 Re b3 = ((Re b1) * (Re b2)) - ((Im b1) * (Im b2))
 
Lemma24: 
for b1, b2, b3 being   Element of  COMPLEX   st b3 = b1 * b2 holds 
 Im b3 = ((Re b1) * (Im b2)) + ((Im b1) * (Re b2))
 
Lemma25: 
for b1, b2 being   Element of  COMPLEX  holds  b1 + b2 = [*((Re b1) + (Re b2)),((Im b1) + (Im b2))*]
 
Lemma26: 
for b1, b2 being   Element of  COMPLEX  holds  b1 * b2 = [*(((Re b1) * (Re b2)) - ((Im b1) * (Im b2))),(((Re b1) * (Im b2)) + ((Re b2) * (Im b1)))*]
 
Lemma27: 
for b1, b2 being complex  number  holds 
 (  Re (b1 * b2) = ((Re b1) * (Re b2)) - ((Im b1) * (Im b2)) &  Im (b1 * b2) = ((Re b1) * (Im b2)) + ((Re b2) * (Im b1)) )
 
Lemma28: 
for b1, b2 being complex  number  holds 
 (  Re (b1 + b2) = (Re b1) + (Re b2) &  Im (b1 + b2) = (Im b1) + (Im b2) )
 
Lemma29: 
for b1 being  Real holds   Re (b1 * <i> ) = 0
 
Lemma30: 
for b1 being  Real holds   Im (b1 * <i> ) = b1
 
Lemma31: 
for b1, b2 being  Real holds  [*b1,b2*] = b1 + (b2 * <i> )
 
:: deftheorem Def9   defines + COMPLEX1:def 9 : 
theorem Th18: :: COMPLEX1:18
canceled; 
theorem Th19: :: COMPLEX1:19
:: deftheorem Def10   defines * COMPLEX1:def 10 : 
theorem Th20: :: COMPLEX1:20
canceled; 
theorem Th21: :: COMPLEX1:21
canceled; 
theorem Th22: :: COMPLEX1:22
canceled; 
theorem Th23: :: COMPLEX1:23
canceled; 
theorem Th24: :: COMPLEX1:24
theorem Th25: :: COMPLEX1:25
theorem Th26: :: COMPLEX1:26
theorem Th27: :: COMPLEX1:27
theorem Th28: :: COMPLEX1:28
theorem Th29: :: COMPLEX1:29
theorem Th30: :: COMPLEX1:30
theorem Th31: :: COMPLEX1:31
theorem Th32: :: COMPLEX1:32
:: deftheorem Def11   defines - COMPLEX1:def 11 : 
theorem Th33: :: COMPLEX1:33
canceled; 
theorem Th34: :: COMPLEX1:34
 - <i>  = 0 + ((- 1) * <i> )
 
;
then Lemma42: 
(  Re (- <i> ) = 0 &  Im (- <i> ) =  - 1 )
 
by Th28;
theorem Th35: :: COMPLEX1:35
canceled; 
theorem Th36: :: COMPLEX1:36
canceled; 
theorem Th37: :: COMPLEX1:37
:: deftheorem Def12   defines - COMPLEX1:def 12 : 
theorem Th38: :: COMPLEX1:38
canceled; 
theorem Th39: :: COMPLEX1:39
canceled; 
theorem Th40: :: COMPLEX1:40
canceled; 
theorem Th41: :: COMPLEX1:41
canceled; 
theorem Th42: :: COMPLEX1:42
canceled; 
theorem Th43: :: COMPLEX1:43
canceled; 
theorem Th44: :: COMPLEX1:44
canceled; 
theorem Th45: :: COMPLEX1:45
canceled; 
theorem Th46: :: COMPLEX1:46
canceled; 
theorem Th47: :: COMPLEX1:47
canceled; 
theorem Th48: :: COMPLEX1:48
:: deftheorem Def13   defines " COMPLEX1:def 13 : 
theorem Th49: :: COMPLEX1:49
canceled; 
theorem Th50: :: COMPLEX1:50
canceled; 
theorem Th51: :: COMPLEX1:51
canceled; 
theorem Th52: :: COMPLEX1:52
canceled; 
theorem Th53: :: COMPLEX1:53
canceled; 
theorem Th54: :: COMPLEX1:54
canceled; 
theorem Th55: :: COMPLEX1:55
canceled; 
theorem Th56: :: COMPLEX1:56
canceled; 
theorem Th57: :: COMPLEX1:57
canceled; 
theorem Th58: :: COMPLEX1:58
canceled; 
theorem Th59: :: COMPLEX1:59
canceled; 
theorem Th60: :: COMPLEX1:60
canceled; 
theorem Th61: :: COMPLEX1:61
canceled; 
theorem Th62: :: COMPLEX1:62
canceled; 
theorem Th63: :: COMPLEX1:63
canceled; 
theorem Th64: :: COMPLEX1:64
theorem Th65: :: COMPLEX1:65
canceled; 
theorem Th66: :: COMPLEX1:66
canceled; 
theorem Th67: :: COMPLEX1:67
canceled; 
theorem Th68: :: COMPLEX1:68
canceled; 
theorem Th69: :: COMPLEX1:69
canceled; 
theorem Th70: :: COMPLEX1:70
canceled; 
theorem Th71: :: COMPLEX1:71
canceled; 
theorem Th72: :: COMPLEX1:72
theorem Th73: :: COMPLEX1:73
canceled; 
theorem Th74: :: COMPLEX1:74
canceled; 
theorem Th75: :: COMPLEX1:75
canceled; 
theorem Th76: :: COMPLEX1:76
canceled; 
theorem Th77: :: COMPLEX1:77
canceled; 
theorem Th78: :: COMPLEX1:78
canceled; 
theorem Th79: :: COMPLEX1:79
theorem Th80: :: COMPLEX1:80
:: deftheorem Def14   defines / COMPLEX1:def 14 : 
theorem Th81: :: COMPLEX1:81
canceled; 
theorem Th82: :: COMPLEX1:82
theorem Th83: :: COMPLEX1:83
canceled; 
theorem Th84: :: COMPLEX1:84
canceled; 
theorem Th85: :: COMPLEX1:85
canceled; 
theorem Th86: :: COMPLEX1:86
canceled; 
theorem Th87: :: COMPLEX1:87
canceled; 
theorem Th88: :: COMPLEX1:88
canceled; 
theorem Th89: :: COMPLEX1:89
canceled; 
theorem Th90: :: COMPLEX1:90
canceled; 
theorem Th91: :: COMPLEX1:91
canceled; 
theorem Th92: :: COMPLEX1:92
canceled; 
theorem Th93: :: COMPLEX1:93
canceled; 
theorem Th94: :: COMPLEX1:94
canceled; 
theorem Th95: :: COMPLEX1:95
canceled; 
theorem Th96: :: COMPLEX1:96
canceled; 
theorem Th97: :: COMPLEX1:97
canceled; 
theorem Th98: :: COMPLEX1:98
canceled; 
theorem Th99: :: COMPLEX1:99
canceled; 
theorem Th100: :: COMPLEX1:100
canceled; 
theorem Th101: :: COMPLEX1:101
canceled; 
theorem Th102: :: COMPLEX1:102
canceled; 
theorem Th103: :: COMPLEX1:103
canceled; 
theorem Th104: :: COMPLEX1:104
canceled; 
theorem Th105: :: COMPLEX1:105
canceled; 
theorem Th106: :: COMPLEX1:106
canceled; 
theorem Th107: :: COMPLEX1:107
canceled; 
theorem Th108: :: COMPLEX1:108
canceled; 
theorem Th109: :: COMPLEX1:109
theorem Th110: :: COMPLEX1:110
:: deftheorem Def15   defines *' COMPLEX1:def 15 : 
theorem Th111: :: COMPLEX1:111
canceled; 
theorem Th112: :: COMPLEX1:112
theorem Th113: :: COMPLEX1:113
theorem Th114: :: COMPLEX1:114
theorem Th115: :: COMPLEX1:115
Lemma49: 
(  Re (<i>  *' ) = 0 &  Im (<i>  *' ) =  - 1 )
 
by Th17, Th112;
theorem Th116: :: COMPLEX1:116
theorem Th117: :: COMPLEX1:117
canceled; 
theorem Th118: :: COMPLEX1:118
theorem Th119: :: COMPLEX1:119
theorem Th120: :: COMPLEX1:120
theorem Th121: :: COMPLEX1:121
theorem Th122: :: COMPLEX1:122
theorem Th123: :: COMPLEX1:123
theorem Th124: :: COMPLEX1:124
theorem Th125: :: COMPLEX1:125
theorem Th126: :: COMPLEX1:126
theorem Th127: :: COMPLEX1:127
theorem Th128: :: COMPLEX1:128
:: deftheorem Def16   defines |. COMPLEX1:def 16 : 
Lemma54: 
 sqrt ((0 ^2 ) + (0 ^2 )) = 0
 
by SQUARE_1:82;
theorem Th129: :: COMPLEX1:129
theorem Th130: :: COMPLEX1:130
theorem Th131: :: COMPLEX1:131
theorem Th132: :: COMPLEX1:132
theorem Th133: :: COMPLEX1:133
Lemma59: 
 sqrt ((1 ^2 ) + (0 ^2 )) = 1
 
by SQUARE_1:83;
theorem Th134: :: COMPLEX1:134
Lemma60: 
 sqrt ((0 ^2 ) + (1 ^2 )) = 1
 
by SQUARE_1:83;
theorem Th135: :: COMPLEX1:135
Lemma61: 
for b1 being complex  number  holds  |.(- b1).| = |.b1.|
 
Lemma62: 
for b1 being real  number   st b1 <= 0 holds 
|.b1.| =  - b1
 
Lemma63: 
for b1 being real  number  holds   sqrt (b1 ^2 ) = |.b1.|
 
theorem Th136: :: COMPLEX1:136
theorem Th137: :: COMPLEX1:137
theorem Th138: :: COMPLEX1:138
theorem Th139: :: COMPLEX1:139
Lemma65: 
for b1 being real  number  holds 
 (  - |.b1.| <= b1 & b1 <= |.b1.| )
 
theorem Th140: :: COMPLEX1:140
theorem Th141: :: COMPLEX1:141
theorem Th142: :: COMPLEX1:142
theorem Th143: :: COMPLEX1:143
theorem Th144: :: COMPLEX1:144
theorem Th145: :: COMPLEX1:145
theorem Th146: :: COMPLEX1:146
theorem Th147: :: COMPLEX1:147
theorem Th148: :: COMPLEX1:148
theorem Th149: :: COMPLEX1:149
Lemma71: 
for b1, b2 being real  number  holds 
 ( (  - b2 <= b1 & b1 <= b2 ) iff |.b1.| <= b2 )
 
theorem Th150: :: COMPLEX1:150
theorem Th151: :: COMPLEX1:151
theorem Th152: :: COMPLEX1:152
theorem Th153: :: COMPLEX1:153
theorem Th154: :: COMPLEX1:154
theorem Th155: :: COMPLEX1:155
theorem Th156: :: COMPLEX1:156
theorem Th157: :: COMPLEX1:157
theorem Th158: :: COMPLEX1:158
theorem Th159: :: COMPLEX1:159
theorem Th160: :: COMPLEX1:160
theorem Th161: :: COMPLEX1:161
theorem Th162: :: COMPLEX1:162
theorem Th163: :: COMPLEX1:163