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

"Safe" axiomatization #127

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

"Safe" axiomatization #127

lastland opened this issue Nov 3, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@lastland
Copy link
Collaborator

lastland commented Nov 3, 2020

Issue by sweirich
Tuesday Jun 25, 2019 at 10:43 GMT
Originally opened as antalsz/hs-to-coq#127


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.

@lastland lastland added the enhancement New feature or request label Nov 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant