feat(library/definitional/projection): add "unfold-c" hint to projections
This commit is contained in:
parent
1bd1f94542
commit
7205382f8c
1 changed files with 2 additions and 0 deletions
|
@ -15,6 +15,7 @@ Author: Leonardo de Moura
|
|||
#include "library/projection.h"
|
||||
#include "library/module.h"
|
||||
#include "library/util.h"
|
||||
#include "library/normalize.h"
|
||||
#include "library/definitional/projection.h"
|
||||
|
||||
namespace lean {
|
||||
|
@ -134,6 +135,7 @@ environment mk_projections(environment const & env, name const & n, buffer<name>
|
|||
opaque, rec_decl.get_module_idx(), use_conv_opt);
|
||||
new_env = module::add(new_env, check(new_env, new_d));
|
||||
new_env = set_reducible(new_env, proj_name, reducible_status::On);
|
||||
new_env = add_unfold_c_hint(new_env, proj_name, nparams);
|
||||
new_env = save_projection_info(new_env, proj_name, inductive::intro_rule_name(intro), nparams, i, inst_implicit);
|
||||
expr proj = mk_app(mk_app(mk_constant(proj_name, lvls), params), c);
|
||||
intro_type = instantiate(binding_body(intro_type), proj);
|
||||
|
|
Loading…
Reference in a new issue