Documentation
Projects
.
Util
.
Complex
Search
return to top
source
Imports
Init
Projects.Util.Real
Mathlib.Analysis.Complex.Exponential
Mathlib.Data.Nat.Choose.Sum
Mathlib.MeasureTheory.Integral.IntervalIntegral.IntegrationByParts
Imported by
Complex
.
sqrt
Complex
.
«term√_»
Complex
.
nnr
Complex
.
norm_mk
Complex
.
sqrt_eq_iff_eq_sq_of_nnr
Complex
.
sqrt_re_of_nnr
Complex
.
sqrt_im_of_nnr
Complex
.
ofNat_eq
Complex
.
nnr_nat
Complex
.
nnr_natCast
Complex
.
sqrt_nat_re
Complex
.
sqrt_nat_im
Complex
.
eq_of_re_eq_re
Complex
.
sq_sqrt
Complex
.
nnr_of_sqrt_im_eq_zero
Complex
.
sqrt_im_eq_zero_iff
Complex
.
nnr_add
Complex
.
nnr_mul
Complex
.
sqrt_mul_of_nnr
Complex
.
sqrt_sq_of_nnr
Complex
.
sqrt_sq_nat
Complex
.
sqrt_neg_one
source
noncomputable def
Complex
.
sqrt
(
x
:
ℂ
)
:
ℂ
Equations
x
.
sqrt
=
x
^
2
⁻¹
Instances For
source
def
Complex
.
«term√_»
:
Lean.ParserDescr
Equations
Complex.«term√_»
=
Lean.ParserDescr.node
`Complex.«term√_»
1024
(
Lean.ParserDescr.binary
`andthen
(
Lean.ParserDescr.symbol
"√"
)
(
Lean.ParserDescr.cat
`term
1024
)
)
Instances For
source
def
Complex
.
nnr
(
x
:
ℂ
)
:
Prop
Equations
x
.
nnr
=
(
0
≤
x
.
re
∧
x
.
im
=
0
)
Instances For
source
@[simp]
theorem
Complex
.
norm_mk
{
a
b
:
ℝ
}
:
‖
{
re
:=
a
,
im
:=
b
}
‖
=
√
(
a
^
2
+
b
^
2
)
source
theorem
Complex
.
sqrt_eq_iff_eq_sq_of_nnr
{
a
b
:
ℂ
}
(
h₁
:
a
.
nnr
)
(
h₂
:
b
.
nnr
)
:
a
.
sqrt
=
b
↔
a
=
b
^
2
source
theorem
Complex
.
sqrt_re_of_nnr
{
a
:
ℂ
}
(
h
:
a
.
nnr
)
:
a
.
sqrt
.
re
=
√
|
a
.
re
|
source
theorem
Complex
.
sqrt_im_of_nnr
{
a
:
ℂ
}
(
h
:
a
.
nnr
)
:
a
.
sqrt
.
im
=
0
source
theorem
Complex
.
ofNat_eq
{
n
:
ℕ
}
:
OfNat.ofNat
n
=
↑
n
source
@[simp]
theorem
Complex
.
nnr_nat
{
n
:
ℕ
}
:
(
OfNat.ofNat
n
)
.
nnr
source
@[simp]
theorem
Complex
.
nnr_natCast
{
n
:
ℕ
}
:
(↑
n
)
.
nnr
source
@[simp]
theorem
Complex
.
sqrt_nat_re
{
n
:
ℕ
}
:
(
OfNat.ofNat
n
)
.
sqrt
.
re
=
√
(
OfNat.ofNat
n
)
source
@[simp]
theorem
Complex
.
sqrt_nat_im
{
n
:
ℕ
}
:
(
OfNat.ofNat
n
)
.
sqrt
.
im
=
0
source
theorem
Complex
.
eq_of_re_eq_re
{
a
b
:
ℂ
}
(
h₁
:
a
.
im
=
0
)
(
h₂
:
b
.
im
=
0
)
(
h₃
:
a
.
re
=
b
.
re
)
:
a
=
b
source
@[simp]
theorem
Complex
.
sq_sqrt
{
a
:
ℂ
}
:
a
.
sqrt
^
2
=
a
source
theorem
Complex
.
nnr_of_sqrt_im_eq_zero
{
x
:
ℂ
}
(
h
:
x
.
sqrt
.
im
=
0
)
:
x
.
nnr
source
theorem
Complex
.
sqrt_im_eq_zero_iff
{
x
:
ℂ
}
:
x
.
sqrt
.
im
=
0
↔
x
.
nnr
source
theorem
Complex
.
nnr_add
{
a
b
:
ℂ
}
(
ha
:
a
.
nnr
)
(
hb
:
b
.
nnr
)
:
(
a
+
b
).
nnr
source
theorem
Complex
.
nnr_mul
{
a
b
:
ℂ
}
(
ha
:
a
.
nnr
)
(
hb
:
b
.
nnr
)
:
(
a
*
b
).
nnr
source
theorem
Complex
.
sqrt_mul_of_nnr
{
a
b
:
ℂ
}
(
ha
:
a
.
nnr
)
(
hb
:
b
.
nnr
)
:
(
a
*
b
).
sqrt
=
a
.
sqrt
*
b
.
sqrt
source
theorem
Complex
.
sqrt_sq_of_nnr
{
a
:
ℂ
}
(
h
:
a
.
nnr
)
:
(
a
^
2
).
sqrt
=
a
source
@[simp]
theorem
Complex
.
sqrt_sq_nat
{
n
:
ℕ
}
:
(
OfNat.ofNat
n
^
2
).
sqrt
=
OfNat.ofNat
n
source
@[simp]
theorem
Complex
.
sqrt_neg_one
:
(-
1
)
.
sqrt
=
I