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

Add support for holes #7

Open
smimram opened this issue Jun 14, 2018 · 1 comment
Open

Add support for holes #7

smimram opened this issue Jun 14, 2018 · 1 comment

Comments

@smimram
Copy link
Collaborator

smimram commented Jun 14, 2018

Often, when I construct a proof, I want to try to fill "part of the diagram". Would it be possible to add a symbol _ which would be able to take any type so that I could be able to start typing "partial morphisms" and the defined part is still typechecked?

@smimram smimram changed the title Add support for implicit identities Add support for holes Jun 14, 2018
@thibautbenjamin
Copy link
Owner

This should be doable using unification,
however, it raises the question of how this should be integrated with some kind of UI. Easy choice would be to add holes and call catt on the file, and have catt stop the first term with holes and display the type inferred type for the holes.

More advanced strategies to integrate that more naturally could be a thing, like with agda. Similarly to agda, I suggest the symbol ? to designate holes, as _ already denotes an argument that can be inferred automatically

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

No branches or pull requests

2 participants