Skip to content
This repository was archived by the owner on Nov 17, 2020. It is now read-only.

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

Open
sweirich opened this issue Jul 1, 2019 · 2 comments
Open

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

sweirich opened this issue Jul 1, 2019 · 2 comments

Comments

@sweirich
Copy link
Collaborator

sweirich commented Jul 1, 2019

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.

@antalsz
Copy link
Owner

antalsz commented Jul 1, 2019

How easy is this to work around?

@sweirich
Copy link
Collaborator Author

sweirich commented Jul 1, 2019

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants