/* Copyright (c) 2013 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Leonardo de Moura */ #pragma once #include #include "kernel/expr.h" #include "kernel/environment.h" #include "kernel/context.h" namespace lean { class environment; class options; /** \brief Functional object for normalizing expressions */ class normalizer { class imp; std::unique_ptr m_ptr; public: normalizer(environment const & env); normalizer(environment const & env, unsigned max_depth); normalizer(environment const & env, options const & opts); ~normalizer(); expr operator()(expr const & e, context const & ctx = context()); void clear(); }; /** \brief Normalize \c e using the environment \c env and context \c ctx */ expr normalize(expr const & e, environment const & env, context const & ctx = context()); }