MAT3253 Complex Variables

1.4. Scalar multiplication🔗

namespace SMul -- extend scalar multiplication on ℚ to -- scalar multiplication on ℚ[i] scoped instance instSMulRationalComplex {R : Type*} [SMul R ] : SMul R ℚ[i] where smul r x := r x.re - 0 * x.im, r x.im + 0 * x.re end SMul open scoped SMul section SMul variable {R : Type*} [SMul R ] theorem smul_re (r : R) (z : ℚ[i]) : (r z).re = r z.re := R:Type u_1inst✝:SMul R r:Rz:ℚ[i](r z).re = r z.re All goals completed! 🐙 theorem smul_im (r : R) (z : ℚ[i]) : (r z).im = r z.im := R:Type u_1inst✝:SMul R r:Rz:ℚ[i](r z).im = r z.im All goals completed! 🐙 @[simp] theorem rational_smul {x : } {z : ℚ[i]} : x z = x * z := rfl end SMul