Created
November 9, 2018 13:52
-
-
Save lthms/2aec9477e51f4c07e020a13aee4da3eb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Require Import Coq.Logic.ProofIrrelevance. | |
Require Import Coq.Program.Tactics. | |
Ltac simpl_exist_eq := | |
match goal with | |
| [ |- exist _ ?x _ = exist _ ?y _] | |
=> let H := fresh "H" | |
in cut (x = y); | |
[ intro H; | |
apply eq_sig with (p:=H); | |
apply proof_irrelevance | |
| (* nothing *) | |
] | |
end. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment