-
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.
Merge pull request #414 from math-comp/saturate-filter
HB.saturate: take a cs pattern as a filter
- Loading branch information
Showing
5 changed files
with
37 additions
and
12 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
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,19 @@ | ||
From HB Require Import structures. | ||
|
||
HB.mixin Record HasPoint T := { default : T }. | ||
|
||
HB.instance Definition _ : HasPoint nat := HasPoint.Build nat 0. | ||
HB.instance Definition _ : HasPoint bool := HasPoint.Build bool false. | ||
HB.instance Definition _ A : HasPoint (list A) := HasPoint.Build (list A) nil. | ||
HB.instance Definition _ A : HasPoint Type := HasPoint.Build Type nat. | ||
|
||
HB.structure Definition Pointed := { T of HasPoint T }. | ||
|
||
HB.saturate (list _). | ||
|
||
Fail Check nat : Pointed.type. | ||
Fail Check bool : Pointed.type. | ||
Check (list unit : Pointed.type). | ||
Fail Check Type : Pointed.type. | ||
|
||
|