blob: c4f921467c53383b98ba9a117f0ef5fc944aaa65 [file]
/*
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);
};