hs-to-coq icon indicating copy to clipboard operation
hs-to-coq copied to clipboard

Add/redefine (axiomatized) instances for redefined types

Open sweirich opened this issue 5 years ago • 2 comments

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.

sweirich avatar Jul 01 '19 15:07 sweirich

How easy is this to work around?

antalsz avatar Jul 01 '19 16:07 antalsz

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.

sweirich avatar Jul 01 '19 17:07 sweirich