Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions Mathlib/Analysis/Complex/Basic.lean
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ instance : DenselyNormedField ℂ where
⟨x, by rwa [norm_real, Real.norm_of_nonneg (h₀.trans_lt h.1).le]⟩

set_option backward.isDefEq.respectTransparency false in
instance {R : Type*} [NormedField R] [NormedAlgebra R ℝ] : NormedAlgebra R ℂ where
instance (priority := 90) {R : Type*} [NormedField R] [NormedAlgebra R ℝ] : NormedAlgebra R ℂ where
norm_smul_le r x := by
rw [← algebraMap_smul ℝ r x, real_smul, norm_mul, norm_real, norm_algebraMap']

Expand Down Expand Up @@ -185,7 +185,6 @@ theorem imCLM_coe : (imCLM : ℂ →ₗ[ℝ] ℝ) = imLm :=
theorem imCLM_apply (z : ℂ) : (imCLM : ℂ → ℝ) z = z.im :=
rfl

set_option backward.isDefEq.respectTransparency false in
theorem restrictScalars_toSpanSingleton' (x : E) :
ContinuousLinearMap.restrictScalars ℝ (toSpanSingleton ℂ x : ℂ →L[ℂ] E) =
reCLM.smulRight x + I • imCLM.smulRight x := by
Expand Down
2 changes: 2 additions & 0 deletions Mathlib/LinearAlgebra/Complex/Module.lean
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,8 @@ instance (priority := 900) Algebra.complexToReal {A : Type*} [Semiring A] [Algeb
Algebra ℝ A :=
.restrictScalars ℝ ℂ A

instance : Algebra ℝ ℂ := inferInstance

-- try to make sure we're not introducing diamonds but we will need
-- `reducible_and_instances` which currently fails https://github.com/leanprover-community/mathlib4/issues/10906
example : Prod.algebra ℝ ℂ ℂ = (Prod.algebra ℂ ℂ ℂ).complexToReal := rfl
Expand Down
Loading