We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c451d74 commit f66b8f4Copy full SHA for f66b8f4
template-coq/theories/EtaExpand.v
@@ -57,7 +57,7 @@ Section Eta.
57
let prev_args := map (lift0 needed) args in
58
let eta_args := rev_map tRel (seq 0 needed) in
59
let remaining := firstn needed (skipn #|args| (rev (smash_context [] (decompose_prod_assum [] ty).1))) in
60
- let remaining_subst := subst_context (rev args) 0 remaining in
+ let remaining_subst := rev (subst_context (rev args) 0 (rev remaining)) in
61
fold_right (fun d b => Ast.tLambda d.(decl_name) d.(decl_type) b) (mkApps (lift0 needed t) (prev_args ++ eta_args)) remaining_subst.
62
63
Definition eta_constructor (ind : inductive) c u args :=
0 commit comments