@@ -103,7 +103,7 @@ Section transform_blocks.
103103 Qed .
104104
105105 Lemma chop_eq {A} n (l : list A) l1 l2 : chop n l = (l1, l2) -> l = l1 ++ l2.
106- Proof .
106+ Proof using Type .
107107 rewrite chop_firstn_skipn. intros [= <- <-].
108108 now rewrite firstn_skipn.
109109 Qed .
@@ -188,7 +188,7 @@ Section transform_blocks.
188188 | view_other fn nconstr =>
189189 mkApps (transform_blocks fn) (map transform_blocks args)
190190 end .
191- Proof .
191+ Proof using Type .
192192 destruct (decompose_app f) eqn:da.
193193 rewrite (decompose_app_inv da). rewrite transform_blocks_mkApps.
194194 now eapply decompose_app_notApp.
@@ -210,7 +210,7 @@ Section transform_blocks.
210210 P (mkApps (transform_blocks fn) (map transform_blocks args))
211211 end ) ->
212212 P (transform_blocks (mkApps fn args)).
213- Proof .
213+ Proof using Type .
214214 intros napp.
215215 move/isEtaExp_mkApps.
216216 rewrite decompose_app_mkApps //.
@@ -228,7 +228,7 @@ Section transform_blocks.
228228
229229 Lemma transform_blocks_mkApps_eta_fn f args : isEtaExp Σ f ->
230230 transform_blocks (mkApps f args) = mkApps (transform_blocks f) (map (transform_blocks) args).
231- Proof .
231+ Proof using Type .
232232 intros ef.
233233 destruct (decompose_app f) eqn:df.
234234 rewrite (decompose_app_inv df) in ef |- *.
@@ -1147,13 +1147,18 @@ Proof.
11471147 destruct nth_error; try now inv Heq.
11481148 destruct nth_error; invs Heq.
11491149 rewrite /wf_minductive in E. rtoProp.
1150+ let H4' := match goal with H : context[has_cstr_params] |- _ => H end in
1151+ rename H4 into H4_old;
1152+ rename H4' into H4.
11501153 rewrite haspars /= in H4.
11511154 cbn in H4. eapply eqb_eq in H4.
11521155 unfold cstr_arity in H0.
11531156 rewrite -> H4 in *. cbn in H0.
11541157 revert E1 E2.
11551158 rewrite <- H0.
11561159 rewrite !chop_firstn_skipn !firstn_all. intros [= <- <-] [= <- <-].
1160+ let X0' := match goal with H : All2 _ _ _ |- _ => H end in
1161+ rename X0' into X0.
11571162 eapply All2_length in X0 as Hlen.
11581163 cbn.
11591164 rewrite !skipn_all Hlen skipn_all firstn_all. cbn.
0 commit comments