The fix was incorrect because it could produce an invalid local context. Actually, the regression tests/lean/run/1258.lean was producing an assertion violation.
18 lines
667 B
C++
18 lines
667 B
C++
/*
|
|
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
|
|
Released under Apache 2.0 license as described in the file LICENSE.
|
|
|
|
Author: Leonardo de Moura
|
|
*/
|
|
#pragma once
|
|
#include "library/tactic/tactic_state.h"
|
|
namespace lean {
|
|
vm_obj clear(expr const & H, tactic_state const & s);
|
|
vm_obj clear_internal(name const & n, tactic_state const & s);
|
|
expr clear(metavar_context & mctx, expr const & mvar, expr const & H);
|
|
/* Eliminate hypotheses that are marked as 'rec'
|
|
(i.e., auxiliary hypotheses generated by the equation compiler). */
|
|
expr clear_recs(metavar_context & mctx, expr const & mvar);
|
|
void initialize_clear_tactic();
|
|
void finalize_clear_tactic();
|
|
}
|