The tactic mk_dec_eq_instance constructs a function using the brec_on recursor. The compiler generates horrible code for this kind of definition. It creates a closure for each recursive call. Moreover, `brec_on` accumulates all intermediate results. To generate efficient code, we need to generate a collection of recursive equations, and then invoke the equation compiler. cc @kha |
||
|---|---|---|
| .. | ||
| basic.lean | ||
| default.lean | ||