feat(library/tactic/ac_tactics): expose flat_assoc in the C++ API

This commit is contained in:
Leonardo de Moura 2016-07-03 21:31:02 +01:00
parent 945faefd78
commit 34d23764fd
2 changed files with 7 additions and 0 deletions

View file

@ -120,6 +120,10 @@ struct flat_assoc_fn {
}
};
pair<expr, optional<expr>> flat_assoc(type_context & ctx, expr const & op, expr const & assoc, expr const & e) {
return flat_assoc_fn(ctx, op, assoc).flat_core(e);
}
#define TRY LEAN_TACTIC_TRY
#define CATCH LEAN_TACTIC_CATCH(to_tactic_state(s))

View file

@ -5,7 +5,10 @@ Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
*/
#pragma once
#include "library/type_context.h"
namespace lean {
pair<expr, optional<expr>> flat_assoc(type_context & ctx, expr const & op, expr const & assoc, expr const & e);
void initialize_ac_tactics();
void finalize_ac_tactics();
}