Created
April 16, 2021 08:13
-
-
Save ybertot/9c72c7c25afdc9d3f2fdd668f3313c4d to your computer and use it in GitHub Desktop.
Example of using EqMixin and siblings to create eqtypes
This file contains 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 HB Require Import structures. | |
From mathcomp Require Import all_ssreflect. | |
Inductive i3 := c1 | c2 | c3. | |
Definition i3dec (x y : i3) : {x = y}+{x <> y}. | |
move: x y=> [ | | ][ | | ]; (by (left)) || (by right). | |
Defined. | |
Fail Lemma toto : c1 == c1. | |
HB.instance Definition _ := HasDecEq.Build i3 (compareP i3dec). | |
Lemma toto (x : i3) : x == x. | |
Proof. by []. Qed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment