Skip to content

Commit

Permalink
fix tactics (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
HuStmpHrrr authored Jun 27, 2024
1 parent 53ec0a6 commit 82a84fe
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions theories/LibTactics.v
Original file line number Diff line number Diff line change
Expand Up @@ -324,10 +324,10 @@ Ltac unify_args H P :=
let tac1 := fun H R H1 T => (let h := find_head T in unify R h; strong_apply H H1) in
let tac2 := fun H R G => (let h := find_head G in unify R h; apply H; simpl) in
match goal with
| H : ?R <∙> _, H1 : ?T |- _ => tac1 H R H1 T
| H : relation_equivalence ?R _, H1 : ?T |- _ => tac1 H R H1 T
| H : ?R <∙> _ |- ?G => tac2 H R G
| H : relation_equivalence ?R _ |- ?G => tac2 H R G
| H : ?R <∙> _, H1 : ?T |- _ => progress tac1 H R H1 T
| H : relation_equivalence ?R _, H1 : ?T |- _ => progress tac1 H R H1 T
| H : ?R <∙> _ |- ?G => progress tac2 H R G
| H : relation_equivalence ?R _ |- ?G => progress tac2 H R G
end.


Expand All @@ -340,10 +340,10 @@ Ltac unify_args H P :=
let tac1 := fun H R H1 T => (let h := find_head T in unify R h; strong_apply H H1) in
let tac2 := fun H R G => (let h := find_head G in unify R h; apply H; simpl) in
match goal with
| H : _ <∙> ?R, H1 : ?T |- _ => tac1 H R H1 T
| H : relation_equivalence _ ?R, H1 : ?T |- _ => tac1 H R H1 T
| H : _ <∙> ?R |- ?G => tac2 H R G
| H : relation_equivalence _ ?R |- ?G => tac2 H R G
| H : _ <∙> ?R, H1 : ?T |- _ => progress tac1 H R H1 T
| H : relation_equivalence _ ?R, H1 : ?T |- _ => progress tac1 H R H1 T
| H : _ <∙> ?R |- ?G => progress tac2 H R G
| H : relation_equivalence _ ?R |- ?G => progress tac2 H R G
end.

#[global]
Expand Down

0 comments on commit 82a84fe

Please sign in to comment.