Skip to content

Instantly share code, notes, and snippets.

@ybertot
ybertot / using hiearchy-builder mathcomp
Created April 16, 2021 08:13
Example of using EqMixin and siblings to create eqtypes
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.