Skip to content

Commit

Permalink
Work around COQBUG(coq/coq#17168)
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonGross committed Apr 6, 2023
1 parent 084bf82 commit 8a5e984
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions safechecker/theories/PCUICEqualityDec.v
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ Proof.
1: eapply (All2_All_mix_left H0), (All2_All_mix_right H3), All2_map_inv ;
eassumption.
now move=> x y [? []] /X.
* destruct (reflect_eq_ctx (pcontext pr) (pcontext pr')) => //.
* case: (reflect_eq_ctx (pcontext pr) (pcontext pr')) => //.
* now destruct (r equ Re 0 X (preturn pr')) ; nodec ; subst.
- move/andb_and => [/andb_and [/andb_and [ppars pinst] pctx] pret].
intuition auto.
Expand All @@ -464,7 +464,7 @@ Proof.
1: eapply (All2_All_mix_left H0), (All2_All_mix_right H3), All2_map_inv;
eassumption.
now move=> x y [? []] /X.
* now destruct (reflect_eq_ctx (pcontext pr) (pcontext pr')).
* move: pctx; case: (reflect_eq_ctx (pcontext pr) (pcontext pr')) => //.
* now destruct (r _ _ 0 X (preturn pr')).
Qed.

Expand Down Expand Up @@ -639,7 +639,7 @@ Proof.
2:{ rewrite andb_false_r /=.
constructor. intros bot; inv bot; contradiction.
}
destruct Hr => /=.
case: Hr => e' /=.
2:{
constructor. intro bot. inversion bot. subst.
auto.
Expand All @@ -657,17 +657,17 @@ Proof.
cbn - [eqb]. inversion X. subst.
destruct a, b. cbn - [eqb eqb_binder_annots].
destruct X0 as [onc onbod].
destruct (reflect_eq_ctx bcontext bcontext0) => // /=.
case: (reflect_eq_ctx bcontext bcontext0) => a // /=.
2:{ constructor. intro bot. inversion bot. subst.
inversion X3. subst. destruct X4. cbn in e1. subst.
inversion X3. subst. destruct X4. cbn in *. subst.
contradiction.
}
cbn - [eqb].
pose proof (onbod equ Re 0 he bbody0) as hh. cbn in hh.
destruct hh => //=.
case: hh => //= [e1|f].
2:{ constructor. intro bot. apply f. inversion bot. subst.
inversion X3. subst. destruct X4. assumption. }
cbn -[eqb eqb_binder_annots] in *. destruct (IHl X1 brs) => //.
cbn -[eqb eqb_binder_annots] in *. case: (IHl X1 brs) => // [e2|f].
2:{ constructor. intro bot. apply f. inversion bot. subst.
inversion X3. subst. constructor; auto. }
constructor. inversion e2. subst.
Expand Down

0 comments on commit 8a5e984

Please sign in to comment.