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

all functions should come with parametricity proofs #5

Open
andres-erbsen opened this issue Jun 6, 2018 · 2 comments
Open

all functions should come with parametricity proofs #5

andres-erbsen opened this issue Jun 6, 2018 · 2 comments

Comments

@andres-erbsen
Copy link

andres-erbsen commented Jun 6, 2018

User developments often use stdlib functions with inputs whose natural equivalence relation does not coincide with Logc.eq: most importantly functions, but also Q, non-hprop sigma types, etc. Then they eventually need the fact that (forall x y, x = y -> f x = g y) -> stdlibfunc f a = stdlibfunc g a. stdlib should make lemmas of this form easily accessible, ideally in a systematic auto-generated form.

@gmalecha
Copy link

We should definitely derive things like this automatically via template-coq (see https://github.com/aa755/paramcoq-iff). Generating them would guarantee that naming is consistent and make it easy for new user-defined types to use similar conventions.

@Blaisorblade
Copy link

Such lemmas should arguably have type Proper ... stdlibfunc, and often be typeclass instances (unless they are not applicable by typeclass search).

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

3 participants