lean4-htt/src/library/let.h
Leonardo de Moura 3c878ecd01 feat(kernel): add let-expressions to the kernel
The frontend is still using the old "let-expression macros".
We will use the new let-expressions to implement the new tactic framework.
2016-02-29 16:40:17 -08:00

25 lines
680 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 "kernel/expr.h"
// TODO(Leo): delete this module after we move to kernel let-expr
namespace lean {
expr mk_let_value(expr const & e);
bool is_let_value(expr const & e);
expr get_let_value_expr(expr const e);
expr mk_let_macro(name const & n, expr const & v, expr const & b);
bool is_let_macro(expr const & e);
name const & get_let_var_name(expr const & e);
expr const & get_let_value(expr const & e);
expr const & get_let_body(expr const & e);
void initialize_let();
void finalize_let();
}