Commit b67886f3 authored by Adam Chlipala's avatar Adam Chlipala

Put [try] in front of [subst], to avoid whining about recursive equalities

parent 9525a82e
...@@ -14,7 +14,7 @@ Require Omega. ...@@ -14,7 +14,7 @@ Require Omega.
Set Implicit Arguments. Set Implicit Arguments.
Ltac inject H := injection H; clear H; intros; subst. Ltac inject H := injection H; clear H; intros; try subst.
Ltac appHyps f := Ltac appHyps f :=
match goal with match goal with
...@@ -46,15 +46,15 @@ Ltac simplHyp invOne := ...@@ -46,15 +46,15 @@ Ltac simplHyp invOne :=
| [ H : ?F _ = ?F _ |- _ ] => injection H; | [ H : ?F _ = ?F _ |- _ ] => injection H;
match goal with match goal with
| [ |- _ = _ -> _ ] => clear H; intros; subst | [ |- _ = _ -> _ ] => clear H; intros; try subst
end end
| [ H : ?F _ _ = ?F _ _ |- _ ] => injection H; | [ H : ?F _ _ = ?F _ _ |- _ ] => injection H;
match goal with match goal with
| [ |- _ = _ -> _ = _ -> _ ] => clear H; intros; subst | [ |- _ = _ -> _ = _ -> _ ] => clear H; intros; try subst
end end
| [ H : ?F _ |- _ ] => inList F invOne; inversion H; [idtac]; clear H; subst | [ H : ?F _ |- _ ] => inList F invOne; inversion H; [idtac]; clear H; try subst
| [ H : ?F _ _ |- _ ] => inList F invOne; inversion H; [idtac]; clear H; subst | [ H : ?F _ _ |- _ ] => inList F invOne; inversion H; [idtac]; clear H; try subst
end. end.
Ltac rewriteHyp := Ltac rewriteHyp :=
...@@ -108,7 +108,7 @@ Ltac un_done := ...@@ -108,7 +108,7 @@ Ltac un_done :=
end. end.
Ltac crush' lemmas invOne := Ltac crush' lemmas invOne :=
let sintuition := simpl in *; intuition; subst; repeat (simplHyp invOne; intuition; subst); try congruence let sintuition := simpl in *; intuition; try subst; repeat (simplHyp invOne; intuition; try subst); try congruence
in (sintuition; rewriter; in (sintuition; rewriter;
repeat ((app ltac:(fun L => inster L L) lemmas || appHyps ltac:(fun L => inster L L)); repeat ((app ltac:(fun L => inster L L) lemmas || appHyps ltac:(fun L => inster L L));
repeat (simplHyp invOne; intuition)); repeat (simplHyp invOne; intuition));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment