Skip to content

Commit

Permalink
Merge pull request #224 from herbelin/master+adapt-coq-pr18591-simpl-…
Browse files Browse the repository at this point in the history
…never-refolding

Adapt to Coq PR #18591: better refolding of List.app inducing "simpl never" now better respected
  • Loading branch information
mrhaandi authored Jun 17, 2024
2 parents 40d38b1 + 0fd2a88 commit a1cf0f9
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 a1cf0f9

Please sign in to comment.