From 42569848035f27ff8dbc8652cc80b0f517c5e97c Mon Sep 17 00:00:00 2001 From: Leonardo de Moura Date: Fri, 15 May 2015 17:06:58 -0700 Subject: [PATCH] fix(library/tactic/inversion_tactic): incorrect check --- src/library/tactic/inversion_tactic.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/library/tactic/inversion_tactic.cpp b/src/library/tactic/inversion_tactic.cpp index 31e413f931..dcab3b7c43 100644 --- a/src/library/tactic/inversion_tactic.cpp +++ b/src/library/tactic/inversion_tactic.cpp @@ -190,7 +190,7 @@ class inversion_tac { } if (!m_dep_elim) { expr const & g_type = g.get_type(); - if (depends_on_any(g_type, m_nindices, args.end() - m_nindices)) + if (depends_on(g_type, h)) return false; } buffer hyps; @@ -213,7 +213,8 @@ class inversion_tac { - non_deps : hypotheses that do not depend on H - deps : hypotheses that depend on H (directly or indirectly) */ - void split_deps(buffer const & hyps, expr const & H, buffer & non_deps, buffer & deps, bool clear_H = false) { + void split_deps(buffer const & hyps, expr const & H, buffer & non_deps, buffer & deps, + bool clear_H = false) { for (expr const & hyp : hyps) { expr const & hyp_type = mlocal_type(hyp); if (depends_on(hyp_type, H) || depends_on_any(hyp_type, deps)) {