Created
August 4, 2023 11:40
-
-
Save Blaisorblade/9628895ae8892b87f4d45d96af284f15 to your computer and use it in GitHub Desktop.
stdpp countable setoids are LeibnizEquiv
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
From stdpp Require Import prelude countable ssreflect. | |
Section test. | |
Context `{CA : Countable A} `{!Equiv A} `{!Equivalence (≡@{A})}. | |
Goal Proper (equiv ==> eq) (encode (A := A)) -> LeibnizEquiv A. | |
Proof. intros HP x y H. apply: (inj encode). by rewrite H. Qed. | |
End test. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment