lean4-htt/src/library/tactic/clear_tactic.h
Leonardo de Moura 49e296dee2 fix(library/type_context, library/tactic/induction_tactic): fix for issue #1258 was incorrect
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.
2016-12-21 21:13:29 -08:00

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();
}