fix(library/eqn_lemmas): typo

This commit is contained in:
Leonardo de Moura 2016-10-09 19:27:30 -07:00
parent 50aca35ce3
commit a737ecfc78
2 changed files with 7 additions and 1 deletions

View file

@ -63,7 +63,7 @@ environment add_eqn_lemma_core(environment const & env, name const & eqn_lemma)
environment add_eqn_lemma(environment const & env, name const & eqn_lemma) {
environment new_env = add_eqn_lemma_core(env, eqn_lemma);
return module::add(env, *g_eqn_lemmas_key, [=](environment const &, serializer & s) { s << eqn_lemma; });
return module::add(new_env, *g_eqn_lemmas_key, [=](environment const &, serializer & s) { s << eqn_lemma; });
}
void get_eqn_lemmas_for(environment const & env, name const & cname, bool refl_only, buffer<simp_lemma> & result) {
@ -76,6 +76,11 @@ void get_eqn_lemmas_for(environment const & env, name const & cname, bool refl_o
}
}
bool has_eqn_lemmas(environment const & env, name const & cname) {
eqn_lemmas_ext const & ext = get_extension(env);
return ext.m_lemmas.contains(cname);
}
static void eqn_lemmas_reader(deserializer & d, shared_environment & senv,
std::function<void(asynch_update_fn const &)> &,
std::function<void(delayed_update_fn const &)> &) {

View file

@ -9,6 +9,7 @@ Author: Leonardo de Moura
namespace lean {
environment add_eqn_lemma(environment const & env, name const & eqn_lemma);
bool has_eqn_lemmas(environment const & env, name const & cname);
void get_eqn_lemmas_for(environment const & env, name const & cname, bool refl_only, buffer<simp_lemma> & result);
void initialize_eqn_lemmas();
void finalize_eqn_lemmas();