feat(library/tactic/simplify): trace prove failures

This commit is contained in:
Leonardo de Moura 2016-12-17 11:53:44 -08:00
parent 7d5b866503
commit ac1af2dfda

View file

@ -120,6 +120,9 @@ bool simplify_core_fn::instantiate_emetas(tmp_type_context & tmp_ctx, unsigned n
if (auto pf = prove(mvar_type)) {
lean_verify(tmp_ctx.is_def_eq(mvar, *pf));
return;
} else {
lean_simp_trace(tmp_ctx, name({"simplify", "failure"}),
tout() << "failed to prove: " << mvar << " : " << mvar_type << "\n";);
}
}