Skip to content

Commit 0fe7953

Browse files
author
Gregory Malecha
committed
hrel and flip
1 parent cf21029 commit 0fe7953

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

theories/Data/HList.v

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -678,4 +678,13 @@ Theorem hlist_hrel_equiv
678678
equiv_hlist R h h'.
679679
Proof.
680680
induction 1; constructor; auto.
681+
Qed.
682+
683+
Theorem hlist_hrel_flip
684+
: forall T (F G : T -> Type) (R : forall t, F t -> G t -> Prop) ls
685+
(h : hlist F ls) (h' : hlist G ls),
686+
hlist_hrel R h h' ->
687+
hlist_hrel (fun t a b => R t b a) h' h.
688+
Proof.
689+
induction 1; constructor; auto.
681690
Qed.

0 commit comments

Comments
 (0)