Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapt to Coq PR #18591: better refolding of List.app inducing "simpl never" now better respected #224

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading