Skip to content
Snippets Groups Projects
Commit 17776cbd authored by Robbert Krebbers's avatar Robbert Krebbers
Browse files

File structure tweak.

parent 4a6a4028
No related branches found
No related tags found
No related merge requests found
...@@ -121,12 +121,13 @@ Section setoids. ...@@ -121,12 +121,13 @@ Section setoids.
Global Instance option_equivalence : Global Instance option_equivalence :
Equivalence (≡@{A}) Equivalence (≡@{option A}). Equivalence (≡@{A}) Equivalence (≡@{option A}).
Proof. apply _. Qed. Proof. apply _. Qed.
Global Instance option_leibniz `{!LeibnizEquiv A} : LeibnizEquiv (option A).
Proof. intros x y; destruct 1; f_equal; by apply leibniz_equiv. Qed.
Global Instance Some_proper : Proper (() ==> (≡@{option A})) Some. Global Instance Some_proper : Proper (() ==> (≡@{option A})) Some.
Proof. by constructor. Qed. Proof. by constructor. Qed.
Global Instance Some_equiv_inj : Inj () (≡@{option A}) Some. Global Instance Some_equiv_inj : Inj () (≡@{option A}) Some.
Proof. by inversion_clear 1. Qed. Proof. by inversion_clear 1. Qed.
Global Instance option_leibniz `{!LeibnizEquiv A} : LeibnizEquiv (option A).
Proof. intros x y; destruct 1; f_equal; by apply leibniz_equiv. Qed.
Lemma equiv_None mx : mx None mx = None. Lemma equiv_None mx : mx None mx = None.
Proof. split; [by inversion_clear 1|intros ->; constructor]. Qed. Proof. split; [by inversion_clear 1|intros ->; constructor]. Qed.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment