Skip to content

Commit 8cdb9d2

Browse files
committed
test
1 parent 8b1725c commit 8cdb9d2

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

_CoqProject.test-suite

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,10 @@ tests/unit/close_hole_term.v
9595
tests/unit/struct.v
9696
tests/factory_when_notation.v
9797

98+
tests/test_primproj_ty.v
99+
98100
-R tests HB.tests
99101
-R examples HB.examples
100102

103+
101104
-Q . HB

tests/test_primproj_ty.v

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
From Coq Require Import ssreflect ssrfun.
2+
From HB Require Import structures.
3+
4+
#[primitive]
5+
HB.mixin Record AddMonoid_of_TYPE S := {
6+
zero : S;
7+
add : S -> S -> S;
8+
addrA : associative add;
9+
add0r : left_id zero add;
10+
addr0 : right_id zero add;
11+
}.
12+
13+
HB.structure Definition AddMonoid := { A of AddMonoid_of_TYPE A }.
14+
15+
Set Printing All.
16+
17+
Goal let x := @addrA in True.
18+
match goal with
19+
| |- let x : forall s : AddMonoid.type, @associative (AddMonoid.sort s) (@add s) := @addrA in True => idtac "OK"
20+
end.
21+
Abort.

0 commit comments

Comments
 (0)