File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,10 @@ tests/unit/close_hole_term.v
9595tests/unit/struct.v
9696tests/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
Original file line number Diff line number Diff line change 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 .
You can’t perform that action at this time.
0 commit comments