Skip to content
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

Add/redefine (axiomatized) instances for redefined types #136

Open
lastland opened this issue Nov 3, 2020 · 2 comments
Open

Add/redefine (axiomatized) instances for redefined types #136

lastland opened this issue Nov 3, 2020 · 2 comments

Comments

@lastland
Copy link
Collaborator

lastland commented Nov 3, 2020

Issue by sweirich
Monday Jul 01, 2019 at 15:20 GMT
Originally opened as antalsz/hs-to-coq#136


If we redefine a type to axiomatize it:

redefine Axiom M.myType : Type.

It would be good to be able to add axiomatize a default instance for this type. Adding this instance in the midamble is too late --- a generated default instance or partial record selector may depend on it.

@lastland
Copy link
Collaborator Author

lastland commented Nov 3, 2020

Comment by antalsz
Monday Jul 01, 2019 at 16:41 GMT


How easy is this to work around?

@lastland
Copy link
Collaborator Author

lastland commented Nov 3, 2020

Comment by sweirich
Monday Jul 01, 2019 at 17:53 GMT


This isn't urgent. It turns out it is better to keep the type axiomatizations in a separate module instead of trying to add them to Core.v. That way we can break more module import cycles.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant