| /* | |
| Copyright (c) 2018 Microsoft Corporation. All rights reserved. | |
| Released under Apache 2.0 license as described in the file LICENSE. | |
| Author: Leonardo de Moura | |
| */ | |
| #pragma once | |
| #include "kernel/environment.h" | |
| #include "library/compiler/util.h" | |
| namespace lean { | |
| /** \brief Lift lambda expressions in `ds`. The result also contains new auxiliary declarations that have been generated. */ | |
| pair<environment, comp_decls> lambda_lifting(environment env, comp_decls const & ds); | |
| /* Return true iff `fn` is the name of an auxiliary function generated by `lambda_lifting`. */ | |
| bool is_lambda_lifting_name(name fn); | |
| }; |