diff --git a/src/frontends/lean/elaborator.cpp b/src/frontends/lean/elaborator.cpp index 0b19ea1ab..3ad60ca03 100644 --- a/src/frontends/lean/elaborator.cpp +++ b/src/frontends/lean/elaborator.cpp @@ -511,7 +511,7 @@ pair elaborator::ensure_has_type( justification const & j, bool relax) { if (is_meta(expected_type) && has_coercions_from(a_type)) { return mk_delayed_coercion(a, a_type, expected_type, j); - } else if (is_meta(a_type) && has_coercions_to(expected_type)) { + } else if (!m_in_equation_lhs && is_meta(a_type) && has_coercions_to(expected_type)) { return mk_delayed_coercion(a, a_type, expected_type, j); } else { pair dcs;