add pair_equiv
All threads resolved!
All threads resolved!
When having H: (a1, b1) ≡ (a2, b2)
, it's actually rather annoying to rewrite an a1
in the goal:
destruct H as [H _]; simpl in H; rewrite H
This is because destructing H
yields (a1, b1).1 ≡ (a2, b2).1
.
So a lemma like this could be useful, then we should be able to do apply pair_equiv in H as [-> _]
.
Merge request reports
Activity
This looks like a useful lemma. Some comments:
- We should also have a version for
eq
(in std++) anddist
(in Iris). - For the first, there is
pair_equal_spec : (a1, b1) = (a2, b2) ↔ a1 = a2 ∧ b1 = b2
in stdlib. I don't particularly like that name since it does not involveeq
so does not scale todist
andequiv
. We might as well make a copy foreq
in std++.
- We should also have a version for
- Resolved by Ralf Jung
Where would that
eq
veresion go?
mentioned in merge request iris!961 (merged)
- Resolved by Ralf Jung
enabled an automatic merge when the pipeline for 08d238fd succeeds
mentioned in commit 14322a17
Please register or sign in to reply