Reputation: 951
I'm trying to destruct a pair equivalence hypothesis in proof when using Coq. But I didn't find the tactic for me.
The case is:
a, b, a', b' : nat
H0 : (a, b) = (a', b')
I want to destruct the pairs in H0 to generate
H1 : a = a'
H2 : b = b'
How can I achieve this? Which tactic should I use? Or should I define lemma for destructing such pair?
Thank you!
Upvotes: 7
Views: 1194