fix(library/tactic/rewrite_tactic): fixes #702

This commit is contained in:
Leonardo de Moura 2015-06-28 20:37:17 -07:00
parent 95720b1670
commit 0fc2efe88e
2 changed files with 7 additions and 1 deletions

View file

@ -743,7 +743,7 @@ class rewrite_fn {
if (!oe)
return none_expr();
expr new_e = *oe;
optional<expr> unfolded_e = unfold_app(m_env, new_e);
optional<expr> unfolded_e = unfold_term(m_env, new_e);
if (!unfolded_e)
return none_expr();
bool use_cache = occ.is_all();

6
tests/lean/run/702.lean Normal file
View file

@ -0,0 +1,6 @@
definition bar := bool
example (b : bar) : bool :=
begin
rewrite [↓bar],
assumption
end