Skip to content

Commit

Permalink
Adapt to Coq PR #18591 which grants "simpl never" on List.app more ac…
Browse files Browse the repository at this point in the history
…curatedly.

The change is however indirect:
- Coq PR #18591 fixes a lack of refolding of fixpoints;
- as a consequence, some calls to "simpl" on subterms start to respect
  "simpl never" as required;
- this impacts "injection" (here the "[]" intro-pattern) as
  "injection" calls "simpl" on the subterms it generates.
  • Loading branch information
herbelin committed Jun 17, 2024
1 parent 40d38b1 commit 0fd2a88
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ Proof.
elim: u s.
- move=> [|y1 [|y2 s]].
+ rewrite ?app_nil_l. move=> <-. right. right. by exists [].
+ move=> [] <- <- /=. right. by left.
+ move=> []. rewrite [in [] ++ _]/List.app => <- <- /=. right. by left.
+ move=> [] <- <- ->. left. by exists s.
- move=> x1 u IH [|y1 s].
+ rewrite ?app_nil_l. move=> <-. right. right. by exists (x1 :: u).
Expand Down Expand Up @@ -707,7 +707,7 @@ Proof.
** rewrite app_nil_r /= ?map_app. move: (a) => [|?]; first done.
move=> Hi [] H1 [<-] H2.
move=> y [?] [/(mm2_instr_at_unique Hi) <-] Hxy.
inversion Hxy. subst.
inversion Hxy. subst. try rewrite [in LHS]/List.app in H1.
eexists (u' ++ [sz]), v', (_ :: _).
rewrite -?app_assoc. constructor; [done | by rewrite /= ?map_app H1 H2].
** rewrite ?map_app filter_app /= app_nil_r /step.
Expand Down

0 comments on commit 0fd2a88

Please sign in to comment.