Skip to content

Commit

Permalink
Add minimized example
Browse files Browse the repository at this point in the history
  • Loading branch information
proux01 committed Apr 11, 2023
1 parent e477707 commit 4491d95
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tests/rev_coerce2.v
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
From HB Require Import structures.

HB.mixin Record isPointed V := { zero : V }.
HB.structure Definition Pointed := {V of isPointed V}.

HB.mixin Record hasTrue (U : Pointed.type) (apply : U -> U) := {t : True}.
HB.structure Definition HasTrue (U : Pointed.type) := {f of hasTrue U f}.

Section Polynomial.
Variable R : Pointed.type.

Record poly := Polynomial {polyseq :> option R}.

HB.instance Definition _ := isPointed.Build poly (Polynomial None).

Definition id x : poly := x.
Definition mixin := hasTrue.Build poly id I.
HB.instance Definition _ := mixin.

End Polynomial.

0 comments on commit 4491d95

Please sign in to comment.