Theorem: SciLean.Scalar.ofReal_ite (SciLean/Core/Objects/Scalar.lean)

State before:
R : Type u_1
inst✝¹ : RealScalar R
c : Prop
inst✝ : Decidable c
t e : ℝ
⊢ ofReal R (if c then t else e) = if c then ofReal R t else ofReal R e
Tactic:
if h : c then simp[h] else simp[h]
State after:
no goals

State before:
R : Type u_1
inst✝¹ : RealScalar R
c : Prop
inst✝ : Decidable c
t e : ℝ
h : c
⊢ ofReal R (if c then t else e) = if c then ofReal R t else ofReal R e
Tactic:
simp[h]
State after:
no goals

State before:
R : Type u_1
inst✝¹ : RealScalar R
c : Prop
inst✝ : Decidable c
t e : ℝ
h : ¬c
⊢ ofReal R (if c then t else e) = if c then ofReal R t else ofReal R e
Tactic:
simp[h]
State after:
no goals