fix(library/blast/state): compilation errors

This commit is contained in:
Leonardo de Moura 2015-11-12 16:25:59 -08:00
parent 6eef52196e
commit 98f91931bf

View file

@ -292,9 +292,6 @@ bool state::check_hypothesis(expr const & e, unsigned hidx, hypothesis const & h
if (is_href(n)) { if (is_href(n)) {
lean_assert(h.depends_on(n)); lean_assert(h.depends_on(n));
lean_assert(hidx_depends_on(hidx, href_index(n))); lean_assert(hidx_depends_on(hidx, href_index(n)));
} else if (is_mref(n)) {
// metavariable is in the set of used metavariables
lean_assert(has_mvar(n));
} }
return true; return true;
}); });
@ -312,9 +309,6 @@ bool state::check_target() const {
for_each(get_target(), [&](expr const & n, unsigned) { for_each(get_target(), [&](expr const & n, unsigned) {
if (is_href(n)) { if (is_href(n)) {
lean_assert(target_depends_on(n)); lean_assert(target_depends_on(n));
} else if (is_mref(n)) {
// metavariable is in the set of used metavariables
lean_assert(has_mvar(n));
} }
return true; return true;
}); });
@ -323,7 +317,7 @@ bool state::check_target() const {
bool state::check_invariant() const { bool state::check_invariant() const {
for_each_hypothesis([&](unsigned hidx, hypothesis const & h) { for_each_hypothesis([&](unsigned hidx, hypothesis const & h) {
lean_assert(check_hypothesis(b, hidx, h)); lean_assert(check_hypothesis(hidx, h));
}); });
lean_assert(check_target()); lean_assert(check_target());
return true; return true;