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

"Safe" axiomatization #127

Open
sweirich opened this issue Jun 25, 2019 · 0 comments
Open

"Safe" axiomatization #127

sweirich opened this issue Jun 25, 2019 · 0 comments

Comments

@sweirich
Copy link
Collaborator

It would be good if hs-to-coq could help distinguish whether added axioms are trivially safe or not. i.e.

Axiom bad : forall {a}, a.

vs

Axiom ok: forall {a}, {Default a} -> a.
Axiom isUpper : Char -> bool.
Axiom newtype : Type.        
Instance Default_newtype : Default newtype.
Axiom str2new : String -> newtype.   

The only tricky bit is that we have to approximate whether types are inhabited (i.e. whether default instances are available).

But it would good to be able to see in the edits file which axioms need more scrutiny.

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

No branches or pull requests

1 participant