lean2/src/frontends/lean/info_tactic.h
Leonardo de Moura 212ae0b61c feat(frontends/lean): automatically add 'info' tactic in begin-end blocks
Actually, the tactic is only added when Lean is in collect-info mode.
2014-10-23 13:30:04 -07:00

19 lines
668 B
C++

/*
Copyright (c) 2014 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/proof_state.h"
namespace lean {
expr mk_info_tactic_expr();
/** \brief The tactic framework does not have access to the info manager.
Thus, it cannot store the proof_state there. The info tactic accomplishes
that by (temporarily) saving the proof state in a thread-local storage
that is accessed by the elaborator using this function. */
optional<proof_state> get_info_tactic_proof_state();
void initialize_info_tactic();
void finalize_info_tactic();
}