equal
deleted
inserted
replaced
377 lemma Re_sgn [simp]: "Re(sgn z) = Re(z)/cmod z" |
377 lemma Re_sgn [simp]: "Re(sgn z) = Re(z)/cmod z" |
378 by (simp add: complex_sgn_def divide_inverse) |
378 by (simp add: complex_sgn_def divide_inverse) |
379 |
379 |
380 lemma Im_sgn [simp]: "Im(sgn z) = Im(z)/cmod z" |
380 lemma Im_sgn [simp]: "Im(sgn z) = Im(z)/cmod z" |
381 by (simp add: complex_sgn_def divide_inverse) |
381 by (simp add: complex_sgn_def divide_inverse) |
|
382 |
|
383 |
|
384 subsection \<open>Absolute value\<close> |
|
385 |
|
386 instantiation complex :: field_abs_sgn |
|
387 begin |
|
388 |
|
389 definition abs_complex :: "complex \<Rightarrow> complex" |
|
390 where "abs_complex = of_real \<circ> norm" |
|
391 |
|
392 instance |
|
393 apply standard |
|
394 apply (auto simp add: abs_complex_def complex_sgn_def norm_mult) |
|
395 apply (auto simp add: scaleR_conv_of_real field_simps) |
|
396 done |
|
397 |
|
398 end |
382 |
399 |
383 |
400 |
384 subsection \<open>Completeness of the Complexes\<close> |
401 subsection \<open>Completeness of the Complexes\<close> |
385 |
402 |
386 lemma bounded_linear_Re: "bounded_linear Re" |
403 lemma bounded_linear_Re: "bounded_linear Re" |