Created
February 10, 2020 17:53
-
-
Save co-dan/613926669f423329b3ab40d2166c8b47 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
diff --git a/theories/list.v b/theories/list.v | |
index 2f1db8e..a200405 100644 | |
--- a/theories/list.v | |
+++ b/theories/list.v | |
@@ -2988,6 +2988,11 @@ Section setoid. | |
Proof. induction n; destruct 1; simpl; try constructor; auto. Qed. | |
Global Instance list_lookup_proper i : Proper ((≡@{list A}) ==> (≡)) (lookup i). | |
Proof. induction i; destruct 1; simpl; try constructor; auto. Qed. | |
+ Global Instance list_lookup_total_proper `{!Inhabited A} i : | |
+ Proper ((≡@{list A}) ==> (≡)) (lookup_total i). | |
+ Proof. | |
+ induction i; destruct 1; simpl; try auto. Abort. | |
+ | |
Global Instance list_alter_proper f i : | |
Proper ((≡) ==> (≡)) f → Proper ((≡) ==> (≡@{list A})) (alter f i). | |
Proof. intros. induction i; destruct 1; constructor; eauto. Qed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment