Mathlib.Basic.Complex.Basic
235 declarations. Mathlib docs · Source
The complex numbers
The complex numbers are modelled as ℝ^2 in the obvious way and it is shown that they form a field
of characteristic zero. For the result that the complex numbers are algebraically closed, see
Complex.isAlgClosed in Mathlib.Analysis.Complex.Polynomial.Basic.
Definition and basic arithmetic
The imaginary unit, I
Commutative ring instance and lemmas
Casts
Ring structure
Complex conjugation
Norm squared
Inversion
Field instance and lemmas
Characteristic zero
def Complex.ctorIdx E1 #
ℂ → ℕ
theorem Complex.mk.injEq E0 #
∀ (re im re_1 im_1 : ℝ), ({ re := re, im := im } = { re := re_1, im := im_1 }) = (re = re_1 ∧ im = im_1)
theorem Complex.mk.inj E1 #
∀ {re im re_1 im_1 : ℝ}, { re := re, im := im } = { re := re_1, im := im_1 } → re = re_1 ∧ im = im_1
structure Complex E3 #
Type
Complex numbers consist of two Reals: a real part re and an imaginary part im.
ctor Complex.mk E0 #
ℝ → ℝ → ℂ
abbrev Complex.re E1 #
ℂ → ℝ
The real part of a complex number.
abbrev Complex.im E1 #
ℂ → ℝ
The imaginary part of a complex number.
def termℂ E1 #
Lean.ParserDescr
Complex numbers consist of two Reals: a real part re and an imaginary part im.
instance Complex.instDecidableEq E0 #
DecidableEq ℂ
def Complex.equivRealProd E1 #
ℂ ≃ ℝ × ℝ
The equivalence between the complex numbers and ℝ × ℝ.
theorem Complex.equivRealProd_apply E0 #
∀ (z : ℂ), Complex.equivRealProd z = (z.re, z.im)
theorem Complex.eta E0 #
∀ (z : ℂ), { re := z.re, im := z.im } = z
theorem Complex.ext E1 #
∀ {z w : ℂ}, z.re = w.re → z.im = w.im → z = w
theorem Complex.ext_iff E0 #
∀ {z w : ℂ}, z = w ↔ z.re = w.re ∧ z.im = w.im
theorem Complex.forall E1 #
∀ {p : ℂ → Prop}, (∀ (x : ℂ), p x) ↔ ∀ (a b : ℝ), p { re := a, im := b }
theorem Complex.exists E1 #
∀ {p : ℂ → Prop}, (∃ x, p x) ↔ ∃ a b, p { re := a, im := b }
theorem Complex.re_surjective E1 #
Function.Surjective Complex.re
theorem Complex.im_surjective E1 #
Function.Surjective Complex.im
theorem Complex.range_re E0 #
Set.range Complex.re = Set.univ
theorem Complex.range_im E0 #
Set.range Complex.im = Set.univ
def Complex.ofReal E1 #
ℝ → ℂ
The natural inclusion of the real numbers into the complex numbers.
instance Complex.instCoeReal E0 #
Coe ℝ ℂ
theorem Complex.ofReal_re E0 #
∀ (r : ℝ), (↑r).re = r
theorem Complex.ofReal_im E0 #
∀ (r : ℝ), (↑r).im = 0
theorem Complex.ofReal_def E0 #
∀ (r : ℝ), ↑r = { re := r, im := 0 }
theorem Complex.ofReal_inj E0 #
∀ {z w : ℝ}, ↑z = ↑w ↔ z = w
theorem Complex.ofReal_injective E1 #
Function.Injective Complex.ofReal
instance Complex.canLift E0 #
CanLift ℂ ℝ Complex.ofReal fun z ↦ z.im = 0
def Complex.reProdIm E1 #
Set ℝ → Set ℝ → Set ℂ
The product of a set on the real axis and a set on the imaginary axis of the complex plane,
denoted by s ×ℂ t.
def Complex.«term_×ℂ_» E1 #
Lean.TrailingParserDescr
The product of a set on the real axis and a set on the imaginary axis of the complex plane,
denoted by s ×ℂ t.
theorem Complex.mem_reProdIm E0 #
∀ {z : ℂ} {s t : Set ℝ}, z ∈ s ×ℂ t ↔ z.re ∈ s ∧ z.im ∈ t
instance Complex.instZero E0 #
Zero ℂ
instance Complex.instInhabited E0 #
Inhabited ℂ
theorem Complex.zero_re E0 #
Complex.re 0 = 0
theorem Complex.zero_im E0 #
Complex.im 0 = 0
theorem Complex.ofReal_zero E0 #
↑0 = 0
theorem Complex.ofReal_eq_zero E0 #
∀ {z : ℝ}, ↑z = 0 ↔ z = 0
theorem Complex.ofReal_ne_zero E1 #
∀ {z : ℝ}, ↑z ≠ 0 ↔ z ≠ 0
instance Complex.instOne E0 #
One ℂ
theorem Complex.one_re E0 #
Complex.re 1 = 1
theorem Complex.one_im E0 #
Complex.im 1 = 0
theorem Complex.ofReal_one E0 #
↑1 = 1
theorem Complex.ofReal_eq_one E0 #
∀ {z : ℝ}, ↑z = 1 ↔ z = 1
theorem Complex.ofReal_ne_one E1 #
∀ {z : ℝ}, ↑z ≠ 1 ↔ z ≠ 1
instance Complex.instAdd E0 #
Add ℂ
theorem Complex.add_re E0 #
∀ (z w : ℂ), (z + w).re = z.re + w.re
theorem Complex.add_im E0 #
∀ (z w : ℂ), (z + w).im = z.im + w.im
theorem Complex.ofReal_add E0 #
∀ (r s : ℝ), ↑(r + s) = ↑r + ↑s
instance Complex.instNeg E0 #
Neg ℂ
theorem Complex.neg_re E0 #
∀ (z : ℂ), (-z).re = -z.re
theorem Complex.neg_im E0 #
∀ (z : ℂ), (-z).im = -z.im
theorem Complex.ofReal_neg E0 #
∀ (r : ℝ), ↑(-r) = -↑r
instance Complex.instSub E0 #
Sub ℂ
def Complex.mulAux E0 #
{R : Type u_1} → [SMul R ℝ] → R → ℝ → ℂ → ℂ
mulAux is an auxiliary definition for defining multiplication and scalar multiplication on ℂ
in such a way that real_smul {x : ℝ} {z : ℂ} : x • z = x * z holds definitionally.
This makes sure that Module.restrictScalars ℝ ℂ ℂ = Complex.instModule definitionally.
instance Complex.instMul E0 #
Mul ℂ
theorem Complex.mk_mul_mk E0 #
∀ (x₁ x₂ y₁ y₂ : ℝ),
{ re := x₁, im := y₁ } * { re := x₂, im := y₂ } = { re := x₁ * x₂ - y₁ * y₂, im := x₁ * y₂ + y₁ * x₂ }
theorem Complex.mul_re E0 #
∀ (z w : ℂ), (z * w).re = z.re * w.re - z.im * w.im
theorem Complex.mul_im E0 #
∀ (z w : ℂ), (z * w).im = z.re * w.im + z.im * w.re
theorem Complex.ofReal_mul E0 #
∀ (r s : ℝ), ↑(r * s) = ↑r * ↑s
theorem Complex.re_ofReal_mul E1 #
∀ (r : ℝ) (z : ℂ), (↑r * z).re = r * z.re
theorem Complex.im_ofReal_mul E1 #
∀ (r : ℝ) (z : ℂ), (↑r * z).im = r * z.im
theorem Complex.re_mul_ofReal E1 #
∀ (z : ℂ) (r : ℝ), (z * ↑r).re = z.re * r
theorem Complex.im_mul_ofReal E1 #
∀ (z : ℂ) (r : ℝ), (z * ↑r).im = z.im * r
theorem Complex.ofReal_mul' E1 #
∀ (r : ℝ) (z : ℂ), ↑r * z = { re := r * z.re, im := r * z.im }
def Complex.I E1 #
ℂ
The imaginary unit.
theorem Complex.I_re E0 #
Complex.I.re = 0
theorem Complex.I_im E0 #
Complex.I.im = 1
theorem Complex.I_mul_I E0 #
Complex.I * Complex.I = -1
theorem Complex.I_mul E1 #
∀ (z : ℂ), Complex.I * z = { re := -z.im, im := z.re }
theorem Complex.I_ne_zero E0 #
Complex.I ≠ 0
theorem Complex.mk_eq_add_mul_I E1 #
∀ (a b : ℝ), { re := a, im := b } = ↑a + ↑b * Complex.I
theorem Complex.re_add_im E0 #
∀ (z : ℂ), ↑z.re + ↑z.im * Complex.I = z
theorem Complex.mul_I_re E1 #
∀ (z : ℂ), (z * Complex.I).re = -z.im
theorem Complex.mul_I_im E1 #
∀ (z : ℂ), (z * Complex.I).im = z.re
theorem Complex.I_mul_re E1 #
∀ (z : ℂ), (Complex.I * z).re = -z.im
theorem Complex.I_mul_im E1 #
∀ (z : ℂ), (Complex.I * z).im = z.re
theorem Complex.equivRealProd_symm_apply E0 #
∀ (p : ℝ × ℝ), Complex.equivRealProd.symm p = ↑p.1 + ↑p.2 * Complex.I
def Complex.equivRealProdAddHom E1 #
ℂ ≃+ ℝ × ℝ
The natural AddEquiv from ℂ to ℝ × ℝ.
theorem Complex.equivRealProdAddHom_symm_apply_re E0 #
∀ (p : ℝ × ℝ), (Complex.equivRealProdAddHom.symm p).re = p.1
theorem Complex.equivRealProdAddHom_symm_apply_im E0 #
∀ (p : ℝ × ℝ), (Complex.equivRealProdAddHom.symm p).im = p.2
theorem Complex.equivRealProdAddHom_apply E0 #
∀ (z : ℂ), Complex.equivRealProdAddHom z = (z.re, z.im)
theorem Complex.equivRealProdAddHom_symm_apply E0 #
∀ (p : ℝ × ℝ), Complex.equivRealProdAddHom.symm p = ↑p.1 + ↑p.2 * Complex.I
instance Complex.instNontrivial E0 #
Nontrivial ℂ
We use a nonstandard formula for the ℕ and ℤ actions to make sure there is no
diamond from the other actions they inherit through the ℝ-action on ℂ and action transitivity
defined in Mathlib.LinearAlgebra.Complex.Module.
def Complex.SMul.instSMulRealComplex E1 #
{R : Type u_1} → [SMul R ℝ] → SMul R ℂ
Scalar multiplication by R on ℝ extends to ℂ. This is used here and in
Mathlib/LinearAlgebra/Complex/Module.lean to transfer instances from ℝ to ℂ, but is not
needed outside, so we make it scoped.
theorem Complex.smul_re E1 #
∀ {R : Type u_1} [inst : SMul R ℝ] (r : R) (z : ℂ), (r • z).re = r • z.re
theorem Complex.smul_im E1 #
∀ {R : Type u_1} [inst : SMul R ℝ] (r : R) (z : ℂ), (r • z).im = r • z.im
theorem Complex.real_smul E0 #
∀ {x : ℝ} {z : ℂ}, x • z = ↑x * z
instance Complex.addCommGroup E0 #
AddCommGroup ℂ
instance Complex.instNatCast E0 #
NatCast ℂ
instance Complex.instIntCast E0 #
IntCast ℂ
instance Complex.instNNRatCast E0 #
NNRatCast ℂ
instance Complex.instRatCast E0 #
RatCast ℂ
theorem Complex.ofReal_ofNat E0 #
∀ (n : ℕ) [inst : n.AtLeastTwo], ↑(OfNat.ofNat n) = OfNat.ofNat n
theorem Complex.ofReal_natCast E0 #
∀ (n : ℕ), ↑↑n = ↑n
theorem Complex.ofReal_intCast E0 #
∀ (n : ℤ), ↑↑n = ↑n
theorem Complex.ofReal_nnratCast E0 #
∀ (q : ℚ≥0), ↑↑q = ↑q
theorem Complex.ofReal_ratCast E0 #
∀ (q : ℚ), ↑↑q = ↑q
theorem Complex.ofReal_ofScientific E0 #
∀ (m : ℕ) (s : Bool) (e : ℕ), ↑(OfScientific.ofScientific m s e) = OfScientific.ofScientific m s e
theorem Complex.re_ofNat E0 #
∀ (n : ℕ) [inst : n.AtLeastTwo], (OfNat.ofNat n).re = OfNat.ofNat n
theorem Complex.im_ofNat E0 #
∀ (n : ℕ) [inst : n.AtLeastTwo], (OfNat.ofNat n).im = 0
theorem Complex.natCast_re E0 #
∀ (n : ℕ), (↑n).re = ↑n
theorem Complex.natCast_im E0 #
∀ (n : ℕ), (↑n).im = 0
theorem Complex.intCast_re E0 #
∀ (n : ℤ), (↑n).re = ↑n
theorem Complex.intCast_im E0 #
∀ (n : ℤ), (↑n).im = 0
theorem Complex.re_nnratCast E0 #
∀ (q : ℚ≥0), (↑q).re = ↑q
theorem Complex.im_nnratCast E0 #
∀ (q : ℚ≥0), (↑q).im = 0
theorem Complex.ratCast_re E0 #
∀ (q : ℚ), (↑q).re = ↑q
theorem Complex.ratCast_im E0 #
∀ (q : ℚ), (↑q).im = 0
theorem Complex.re_ofScientific E0 #
∀ (m : ℕ) (s : Bool) (e : ℕ), Complex.re (OfScientific.ofScientific m s e) = OfScientific.ofScientific m s e
theorem Complex.im_ofScientific E0 #
∀ (m : ℕ) (s : Bool) (e : ℕ), Complex.im (OfScientific.ofScientific m s e) = 0
instance Complex.addGroupWithOne E0 #
AddGroupWithOne ℂ
instance Complex.commRing E0 #
CommRing ℂ
instance Complex.instRing E0 #
Ring ℂ
This shortcut instance ensures we do not find Ring via the noncomputable Complex.field
instance.
instance Complex.instNonUnitalCommRing E0 #
NonUnitalCommRing ℂ
This shortcut instance ensures we do not find NonUnitalCommRing via the noncomputable
instCommCStarAlgebraComplex instance.
instance Complex.instCommSemiring E0 #
CommSemiring ℂ
This shortcut instance ensures we do not find CommSemiring via the noncomputable
Complex.field instance.
instance Complex.instSemiring E0 #
Semiring ℂ
This shortcut instance ensures we do not find Semiring via the noncomputable
Complex.field instance.
instance Complex.instAddCommMonoid E0 #
AddCommMonoid ℂ
This shortcut instance ensures we do not find AddCommMonoid via the noncomputable
Complex.instNormedField instance.
def Complex.reAddGroupHom E1 #
ℂ →+ ℝ
The "real part" map, considered as an additive group homomorphism.
theorem Complex.coe_reAddGroupHom E0 #
⇑Complex.reAddGroupHom = Complex.re
def Complex.imAddGroupHom E1 #
ℂ →+ ℝ
The "imaginary part" map, considered as an additive group homomorphism.
theorem Complex.coe_imAddGroupHom E0 #
⇑Complex.imAddGroupHom = Complex.im
theorem Complex.re_nsmul E1 #
∀ (n : ℕ) (z : ℂ), (n • z).re = n • z.re
theorem Complex.im_nsmul E1 #
∀ (n : ℕ) (z : ℂ), (n • z).im = n • z.im
theorem Complex.re_zsmul E1 #
∀ (n : ℤ) (z : ℂ), (n • z).re = n • z.re
theorem Complex.im_zsmul E1 #
∀ (n : ℤ) (z : ℂ), (n • z).im = n • z.im
theorem Complex.re_nnqsmul E0 #
∀ (q : ℚ≥0) (z : ℂ), (q • z).re = q • z.re
theorem Complex.im_nnqsmul E0 #
∀ (q : ℚ≥0) (z : ℂ), (q • z).im = q • z.im
theorem Complex.re_qsmul E0 #
∀ (q : ℚ) (z : ℂ), (q • z).re = q • z.re
theorem Complex.im_qsmul E0 #
∀ (q : ℚ) (z : ℂ), (q • z).im = q • z.im
theorem Complex.ofReal_nsmul E1 #
∀ (n : ℕ) (r : ℝ), ↑(n • r) = n • ↑r
theorem Complex.ofReal_zsmul E1 #
∀ (n : ℤ) (r : ℝ), ↑(n • r) = n • ↑r
instance Complex.instStarRing E0 #
StarRing ℂ
This defines the complex conjugate as the star operation of the StarRing ℂ. It
is recommended to use the ring endomorphism version starRingEnd, available under the
notation conj in the scope ComplexConjugate.
theorem Complex.conj_re E0 #
∀ (z : ℂ), ((starRingEnd ℂ) z).re = z.re
theorem Complex.conj_im E0 #
∀ (z : ℂ), ((starRingEnd ℂ) z).im = -z.im
theorem Complex.conj_ofReal E0 #
∀ (r : ℝ), (starRingEnd ℂ) ↑r = ↑r
theorem Complex.conj_I E0 #
(starRingEnd ℂ) Complex.I = -Complex.I
theorem Complex.conj_natCast E1 #
∀ (n : ℕ), (starRingEnd ℂ) ↑n = ↑n
theorem Complex.conj_ofNat E1 #
∀ (n : ℕ) [inst : n.AtLeastTwo], (starRingEnd ℂ) (OfNat.ofNat n) = OfNat.ofNat n
theorem Complex.conj_neg_I E1 #
(starRingEnd ℂ) (-Complex.I) = Complex.I
theorem Complex.conj_eq_iff_real E1 #
∀ {z : ℂ}, (starRingEnd ℂ) z = z ↔ ∃ r, z = ↑r
theorem Complex.conj_eq_iff_re E1 #
∀ {z : ℂ}, (starRingEnd ℂ) z = z ↔ ↑z.re = z
theorem Complex.conj_eq_iff_im E1 #
∀ {z : ℂ}, (starRingEnd ℂ) z = z ↔ z.im = 0
theorem Complex.star_def E0 #
star = ⇑(starRingEnd ℂ)
def Complex.normSq E1 #
ℂ →*₀ ℝ
The norm squared function.
theorem Complex.normSq_apply E0 #
∀ (z : ℂ), Complex.normSq z = z.re * z.re + z.im * z.im
theorem Complex.normSq_ofReal E0 #
∀ (r : ℝ), Complex.normSq ↑r = r * r
theorem Complex.normSq_natCast E0 #
∀ (n : ℕ), Complex.normSq ↑n = ↑n * ↑n
theorem Complex.normSq_intCast E0 #
∀ (z : ℤ), Complex.normSq ↑z = ↑z * ↑z
theorem Complex.normSq_ratCast E0 #
∀ (q : ℚ), Complex.normSq ↑q = ↑q * ↑q
theorem Complex.normSq_ofNat E0 #
∀ (n : ℕ) [inst : n.AtLeastTwo], Complex.normSq (OfNat.ofNat n) = OfNat.ofNat n * OfNat.ofNat n
theorem Complex.normSq_mk E0 #
∀ (x y : ℝ), Complex.normSq { re := x, im := y } = x * x + y * y
theorem Complex.normSq_add_mul_I E1 #
∀ (x y : ℝ), Complex.normSq (↑x + ↑y * Complex.I) = x ^ 2 + y ^ 2
theorem Complex.normSq_eq_conj_mul_self E1 #
∀ {z : ℂ}, ↑(Complex.normSq z) = (starRingEnd ℂ) z * z
theorem Complex.normSq_zero E1 #
Complex.normSq 0 = 0
theorem Complex.normSq_one E1 #
Complex.normSq 1 = 1
theorem Complex.normSq_I E0 #
Complex.normSq Complex.I = 1
theorem Complex.normSq_nonneg E1 #
∀ (z : ℂ), 0 ≤ Complex.normSq z
theorem Complex.normSq_eq_zero E1 #
∀ {z : ℂ}, Complex.normSq z = 0 ↔ z = 0
theorem Complex.normSq_pos E0 #
∀ {z : ℂ}, 0 < Complex.normSq z ↔ z ≠ 0
theorem Complex.normSq_neg E0 #
∀ (z : ℂ), Complex.normSq (-z) = Complex.normSq z
theorem Complex.normSq_conj E0 #
∀ (z : ℂ), Complex.normSq ((starRingEnd ℂ) z) = Complex.normSq z
theorem Complex.normSq_mul E1 #
∀ (z w : ℂ), Complex.normSq (z * w) = Complex.normSq z * Complex.normSq w
theorem Complex.normSq_add E1 #
∀ (z w : ℂ), Complex.normSq (z + w) = Complex.normSq z + Complex.normSq w + 2 * (z * (starRingEnd ℂ) w).re
theorem Complex.re_sq_le_normSq E1 #
∀ (z : ℂ), z.re * z.re ≤ Complex.normSq z
theorem Complex.im_sq_le_normSq E1 #
∀ (z : ℂ), z.im * z.im ≤ Complex.normSq z
theorem Complex.mul_conj E1 #
∀ (z : ℂ), z * (starRingEnd ℂ) z = ↑(Complex.normSq z)
theorem Complex.add_conj E1 #
∀ (z : ℂ), z + (starRingEnd ℂ) z = ↑(2 * z.re)
def Complex.ofRealHom E1 #
ℝ →+* ℂ
The coercion ℝ → ℂ as a RingHom.
theorem Complex.ofRealHom_eq_coe E0 #
∀ (r : ℝ), Complex.ofRealHom r = ↑r
theorem Complex.ofReal_comp_add E0 #
∀ {α : Type u_1} (f g : α → ℝ), Complex.ofReal ∘ (f + g) = Complex.ofReal ∘ f + Complex.ofReal ∘ g
theorem Complex.ofReal_comp_sub E0 #
∀ {α : Type u_1} (f g : α → ℝ), Complex.ofReal ∘ (f - g) = Complex.ofReal ∘ f - Complex.ofReal ∘ g
theorem Complex.ofReal_comp_neg E0 #
∀ {α : Type u_1} (f : α → ℝ), Complex.ofReal ∘ (-f) = -Complex.ofReal ∘ f
theorem Complex.ofReal_comp_nsmul E1 #
∀ {α : Type u_1} (n : ℕ) (f : α → ℝ), Complex.ofReal ∘ (n • f) = n • Complex.ofReal ∘ f
theorem Complex.ofReal_comp_zsmul E1 #
∀ {α : Type u_1} (n : ℤ) (f : α → ℝ), Complex.ofReal ∘ (n • f) = n • Complex.ofReal ∘ f
theorem Complex.ofReal_comp_mul E0 #
∀ {α : Type u_1} (f g : α → ℝ), Complex.ofReal ∘ (f * g) = Complex.ofReal ∘ f * Complex.ofReal ∘ g
theorem Complex.ofReal_comp_pow E0 #
∀ {α : Type u_1} (f : α → ℝ) (n : ℕ), Complex.ofReal ∘ (f ^ n) = Complex.ofReal ∘ f ^ n
theorem Complex.I_sq E0 #
Complex.I ^ 2 = -1
theorem Complex.I_pow_three E0 #
Complex.I ^ 3 = -Complex.I
theorem Complex.I_pow_four E0 #
Complex.I ^ 4 = 1
theorem Complex.I_pow_eq_pow_mod E1 #
∀ (n : ℕ), Complex.I ^ n = Complex.I ^ (n % 4)
def Complex.I_pow_eq_pow_mod' E1 #
Lean.Meta.Simp.Simproc
Reduce Complex.I ^ n to Complex.I ^ (n % 4) when n is a literal natural number at
least 4. Combined with Nat.reduceMod this normalises every literal power of I to one of
I ^ 0, I ^ 1, I ^ 2, I ^ 3, which the existing @[simp] lemmas dispatch.
theorem Complex.sub_re E0 #
∀ (z w : ℂ), (z - w).re = z.re - w.re
theorem Complex.sub_im E0 #
∀ (z w : ℂ), (z - w).im = z.im - w.im
theorem Complex.ofReal_sub E0 #
∀ (r s : ℝ), ↑(r - s) = ↑r - ↑s
theorem Complex.ofReal_pow E0 #
∀ (r : ℝ) (n : ℕ), ↑(r ^ n) = ↑r ^ n
theorem Complex.sub_conj E1 #
∀ (z : ℂ), z - (starRingEnd ℂ) z = ↑(2 * z.im) * Complex.I
theorem Complex.normSq_sub E1 #
∀ (z w : ℂ), Complex.normSq (z - w) = Complex.normSq z + Complex.normSq w - 2 * (z * (starRingEnd ℂ) w).re
instance Complex.instInv E0 #
Inv ℂ
theorem Complex.inv_def E0 #
∀ (z : ℂ), z⁻¹ = (starRingEnd ℂ) z * ↑(Complex.normSq z)⁻¹
theorem Complex.inv_re E0 #
∀ (z : ℂ), z⁻¹.re = z.re / Complex.normSq z
theorem Complex.inv_im E0 #
∀ (z : ℂ), z⁻¹.im = -z.im / Complex.normSq z
theorem Complex.ofReal_inv E0 #
∀ (r : ℝ), ↑r⁻¹ = (↑r)⁻¹
theorem Complex.inv_zero E1 #
0⁻¹ = 0
theorem Complex.mul_inv_cancel E1 #
∀ {z : ℂ}, z ≠ 0 → z * z⁻¹ = 1
instance Complex.instDivInvMonoid E0 #
DivInvMonoid ℂ
theorem Complex.div_re E1 #
∀ (z w : ℂ), (z / w).re = z.re * w.re / Complex.normSq w + z.im * w.im / Complex.normSq w
theorem Complex.div_im E1 #
∀ (z w : ℂ), (z / w).im = z.im * w.re / Complex.normSq w - z.re * w.im / Complex.normSq w
instance Complex.instField E3 #
Field ℂ
theorem Complex.ofReal_nnqsmul E0 #
∀ (q : ℚ≥0) (r : ℝ), ↑(q • r) = q • ↑r
theorem Complex.ofReal_qsmul E0 #
∀ (q : ℚ) (r : ℝ), ↑(q • r) = q • ↑r
theorem Complex.conj_inv E1 #
∀ (x : ℂ), (starRingEnd ℂ) x⁻¹ = ((starRingEnd ℂ) x)⁻¹
theorem Complex.ofReal_div E0 #
∀ (r s : ℝ), ↑(r / s) = ↑r / ↑s
theorem Complex.ofReal_zpow E0 #
∀ (r : ℝ) (n : ℤ), ↑(r ^ n) = ↑r ^ n
theorem Complex.div_I E0 #
∀ (z : ℂ), z / Complex.I = -(z * Complex.I)
theorem Complex.inv_I E0 #
Complex.I⁻¹ = -Complex.I
theorem Complex.I_zpow_eq_zpow_mod E1 #
∀ (m : ℤ), Complex.I ^ m = Complex.I ^ (m % 4)
theorem Complex.normSq_inv E1 #
∀ (z : ℂ), Complex.normSq z⁻¹ = (Complex.normSq z)⁻¹
theorem Complex.normSq_div E1 #
∀ (z w : ℂ), Complex.normSq (z / w) = Complex.normSq z / Complex.normSq w
theorem Complex.div_ofReal E1 #
∀ (z : ℂ) (x : ℝ), z / ↑x = { re := z.re / x, im := z.im / x }
theorem Complex.div_natCast E1 #
∀ (z : ℂ) (n : ℕ), z / ↑n = { re := z.re / ↑n, im := z.im / ↑n }
theorem Complex.div_intCast E1 #
∀ (z : ℂ) (n : ℤ), z / ↑n = { re := z.re / ↑n, im := z.im / ↑n }
theorem Complex.div_ratCast E1 #
∀ (z : ℂ) (x : ℚ), z / ↑x = { re := z.re / ↑x, im := z.im / ↑x }
theorem Complex.div_ofNat E1 #
∀ (z : ℂ) (n : ℕ) [inst : n.AtLeastTwo], z / OfNat.ofNat n = { re := z.re / OfNat.ofNat n, im := z.im / OfNat.ofNat n }
theorem Complex.div_ofReal_re E0 #
∀ (z : ℂ) (x : ℝ), (z / ↑x).re = z.re / x
theorem Complex.div_ofReal_im E0 #
∀ (z : ℂ) (x : ℝ), (z / ↑x).im = z.im / x
theorem Complex.div_natCast_re E0 #
∀ (z : ℂ) (n : ℕ), (z / ↑n).re = z.re / ↑n
theorem Complex.div_natCast_im E0 #
∀ (z : ℂ) (n : ℕ), (z / ↑n).im = z.im / ↑n
theorem Complex.div_intCast_re E0 #
∀ (z : ℂ) (n : ℤ), (z / ↑n).re = z.re / ↑n
theorem Complex.div_intCast_im E0 #
∀ (z : ℂ) (n : ℤ), (z / ↑n).im = z.im / ↑n
theorem Complex.div_ratCast_re E0 #
∀ (z : ℂ) (x : ℚ), (z / ↑x).re = z.re / ↑x
theorem Complex.div_ratCast_im E0 #
∀ (z : ℂ) (x : ℚ), (z / ↑x).im = z.im / ↑x
theorem Complex.div_ofNat_re E0 #
∀ (z : ℂ) (n : ℕ) [inst : n.AtLeastTwo], (z / OfNat.ofNat n).re = z.re / OfNat.ofNat n
theorem Complex.div_ofNat_im E0 #
∀ (z : ℂ) (n : ℕ) [inst : n.AtLeastTwo], (z / OfNat.ofNat n).im = z.im / OfNat.ofNat n
instance Complex.instCharZero E0 #
CharZero ℂ
theorem Complex.re_eq_add_conj E1 #
∀ (z : ℂ), ↑z.re = (z + (starRingEnd ℂ) z) / 2
A complex number z plus its conjugate conj z is 2 times its real part.
theorem Complex.im_eq_sub_conj E1 #
∀ (z : ℂ), ↑z.im = (z - (starRingEnd ℂ) z) / (2 * Complex.I)
A complex number z minus its conjugate conj z is 2i times its imaginary part.
instance Complex.instRepr E0 #
Repr ℂ
Show the imaginary number ⟨x, y⟩ as an "x + y*I" string
Note that the Real numbers used for x and y will show as Cauchy sequences due to the way Real numbers are represented.
theorem Complex.preimage_equivRealProd_prod E1 #
∀ (s t : Set ℝ), ⇑Complex.equivRealProd ⁻¹' s ×ˢ t = s ×ℂ t
The preimage under equivRealProd of s ×ˢ t is s ×ℂ t.
theorem Complex.reProdIm_subset_iff E0 #
∀ {s s₁ t t₁ : Set ℝ}, s ×ℂ t ⊆ s₁ ×ℂ t₁ ↔ s ×ˢ t ⊆ s₁ ×ˢ t₁
The inequality s × t ⊆ s₁ × t₁ holds in ℂ iff it holds in ℝ × ℝ.
theorem Complex.reProdIm_subset_iff' E1 #
∀ {s s₁ t t₁ : Set ℝ}, s ×ℂ t ⊆ s₁ ×ℂ t₁ ↔ s ⊆ s₁ ∧ t ⊆ t₁ ∨ s = ∅ ∨ t = ∅
If s ⊆ s₁ ⊆ ℝ and t ⊆ t₁ ⊆ ℝ, then s × t ⊆ s₁ × t₁ in ℂ.
theorem Complex.reProdIm_nonempty E0 #
∀ {s t : Set ℝ}, (s ×ℂ t).Nonempty ↔ s.Nonempty ∧ t.Nonempty
theorem Complex.reProdIm_eq_empty E0 #
∀ {s t : Set ℝ}, s ×ℂ t = ∅ ↔ s = ∅ ∨ t = ∅
def Complex.Rectangle E1 #
ℂ → ℂ → Set ℂ
A Rectangle is an axis-parallel rectangle with corners z and w.
theorem Complex.horizontalSegment_eq E0 #
∀ (a₁ a₂ b : ℝ), (fun x ↦ ↑x + ↑b * Complex.I) '' Set.uIcc a₁ a₂ = Set.uIcc a₁ a₂ ×ℂ {b}
A real segment [a₁, a₂] translated by b * I is the complex line segment.
theorem Complex.verticalSegment_eq E0 #
∀ (a b₁ b₂ : ℝ), (fun y ↦ ↑a + ↑y * Complex.I) '' Set.uIcc b₁ b₂ = {a} ×ℂ Set.uIcc b₁ b₂
A vertical segment [b₁, b₂] translated by a is the complex line segment.