-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
inhType
#10
Comments
We haven't finished with this, so it's too early to close the issue. |
I would actually propose to remove
This way one can use any default element on-the-fly without going through the hassle of using more displays and creating different canonical instances. This approach (called unbundled in the literature) is used in Mathcomp as well, e.g. |
Here is a branch with |
Indeed, we can consider the option of removing Originally, the plan was to use it in combination with We do not use ordinals to encode events anymore, so this functionality is not needed now. |
There is also Maybe we can ask to move it to the main |
Define
inhType
structure for inhabited type with one selected element.inhType
structure and some canonical instances (e.g. fornat
,option
,list
)ext
function that extends function defined on subtype to whole inhabited typeext
defined for ordinalsext
defined for arbitarysubType
ext
as coercionThe text was updated successfully, but these errors were encountered: