-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- introduced w-params A and w-args A, with combinators w-params.then, w-params.map and list-w-params.flatten-map - replaced `toposort-1` by `toposort-proj triple_1` Co-Authored-By: Cyril Cohen <cyril.cohen@inria.fr> Co-Authored-By: Kazuhiko Sakaguchi <pi8027@gmail.com>
- Loading branch information
1 parent
f9368d9
commit 24f3fa2
Showing
6 changed files
with
883 additions
and
339 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
From HB Require Import structures. | ||
|
||
HB.mixin Record m1 (T : Type) (A : Type) := { | ||
inhab : A; | ||
inhab_param : T; | ||
}. | ||
HB.structure Definition s1 T := { A of m1 T A }. | ||
|
||
Check inhab. | ||
(* inhab : forall (T : Type) (A : s1.type T), s1.sort A *) | ||
|
||
HB.mixin Record m2 (T : Type) (A : Type) of m1 T A := { | ||
inj : T -> A; | ||
}. | ||
|
||
HB.structure Definition s2 T := | ||
{ A of m1 T A & m2 T A }. | ||
|
||
Check fun X : s2.type nat => inhab : X. | ||
Check fun X : s2.type nat => inj : nat -> X. | ||
About s2_to_s1. |
Oops, something went wrong.