From c064f0cd82f96620b84d927cdb52bde2bc7f2672 Mon Sep 17 00:00:00 2001 From: Daniel Selsam Date: Sat, 28 Nov 2015 18:58:50 -0800 Subject: [PATCH] fix(library/blast/simplifier/ceqv): typos --- src/library/blast/simplifier/ceqv.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/library/blast/simplifier/ceqv.cpp b/src/library/blast/simplifier/ceqv.cpp index ed0726a26..dc8528e46 100644 --- a/src/library/blast/simplifier/ceqv.cpp +++ b/src/library/blast/simplifier/ceqv.cpp @@ -51,7 +51,7 @@ class to_ceqvs_fn { } // If restricted is true, we don't use (e <-> true) rewrite - list apply(expr const & e, expr const & H, bool restrited) { + list apply(expr const & e, expr const & H, bool restricted) { expr c, Hdec, A, arg1, arg2; if (is_relation(e)) { return mk_singleton(e, H); @@ -63,15 +63,15 @@ class to_ceqvs_fn { // TODO(Leo): we can extend this trick to any type that has only one constructor expr H1 = mk_app(mk_constant(get_and_elim_left_name()), arg1, arg2, H); expr H2 = mk_app(mk_constant(get_and_elim_right_name()), arg1, arg2, H); - auto r1 = apply(arg1, H1, restrited); - auto r2 = apply(arg2, H2, restrited); + auto r1 = apply(arg1, H1, restricted); + auto r2 = apply(arg2, H2, restricted); return append(r1, r2); } else if (is_pi(e)) { // TODO(dhs): keep name? expr local = m_tctx.mk_tmp_local(binding_domain(e), binding_info(e)); expr new_e = instantiate(binding_body(e), local); expr new_H = mk_app(H, local); - auto r = apply(new_e, new_H, restrited); + auto r = apply(new_e, new_H, restricted); unsigned len = length(r); if (len == 0) { return r; @@ -89,10 +89,10 @@ class to_ceqvs_fn { c, arg1, arg2, Hdec, e, Hc}); expr H2 = mk_app({mk_constant(get_implies_of_if_neg_name()), c, arg1, arg2, Hdec, e, Hnc}); - auto r1 = lift(Hc, apply(arg1, H1, restrited)); - auto r2 = lift(Hnc, apply(arg2, H2, restrited)); + auto r1 = lift(Hc, apply(arg1, H1, restricted)); + auto r2 = lift(Hnc, apply(arg2, H2, restricted)); return append(r1, r2); - } else if (!restrited) { + } else if (!restricted) { expr new_e = m_tctx.whnf(e); if (new_e != e) { if (auto r = apply(new_e, H, true)) @@ -113,8 +113,8 @@ public: to_ceqvs_fn(tmp_type_context & tctx):m_env(tctx.env()), m_tctx(tctx) {} list operator()(expr const & e, expr const & H) { - bool restrited = false; - list lst = apply(e, H, restrited); + bool restricted = false; + list lst = apply(e, H, restricted); return filter(lst, [&](expr_pair const & p) { return is_ceqv(m_tctx, p.first); }); } };