2015-02-03 00:03:06 +00:00
|
|
|
/*
|
|
|
|
Copyright (c) 2015 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.h"
|
|
|
|
#include "library/tactic/location.h"
|
|
|
|
|
|
|
|
namespace lean {
|
2015-02-06 19:03:36 +00:00
|
|
|
expr mk_rewrite_unfold(list<name> const & ns, location const & loc);
|
2015-02-05 21:16:05 +00:00
|
|
|
expr mk_rewrite_reduce(location const & loc);
|
|
|
|
expr mk_rewrite_reduce_to(expr const & e, location const & loc);
|
2015-02-03 03:20:24 +00:00
|
|
|
expr mk_rewrite_once(optional<expr> const & pattern, expr const & H, bool symm, location const & loc);
|
|
|
|
expr mk_rewrite_zero_or_more(optional<expr> const & pattern, expr const & H, bool symm, location const & loc);
|
|
|
|
expr mk_rewrite_one_or_more(optional<expr> const & pattern, expr const & H, bool symm, location const & loc);
|
|
|
|
expr mk_rewrite_at_most_n(optional<expr> const & pattern, expr const & H, bool symm, unsigned n, location const & loc);
|
|
|
|
expr mk_rewrite_exactly_n(optional<expr> const & pattern, expr const & H, bool symm, unsigned n, location const & loc);
|
|
|
|
bool is_rewrite_unfold_step(expr const & e);
|
|
|
|
bool is_rewrite_step(expr const & e);
|
2015-02-03 00:03:06 +00:00
|
|
|
|
2015-02-03 03:20:24 +00:00
|
|
|
/** \brief Create a rewrite tactic expression, where elems was created using \c mk_rewrite_* procedures. */
|
|
|
|
expr mk_rewrite_tactic_expr(buffer<expr> const & elems);
|
2015-02-03 00:03:06 +00:00
|
|
|
|
|
|
|
void initialize_rewrite_tactic();
|
|
|
|
void finalize_rewrite_tactic();
|
|
|
|
}
|