Skip to content

How the proof goals get generated? #318

Answered by atennapel
lancejpollard asked this question in Q&A
Discussion options

You must be logged in to vote

In Kind the goals are part of the AST. When you are type checking you are traversing the AST while keeping track of which variables are in scope. So when you reach a goal/hole you have the information available. The next goal is just the next hole you reach while traversing the AST.

I don't know how Coq tactics work, similarly I assume.

You can study https://github.com/AndrasKovacs/elaboration-zoo for one way to implement type checkers. Though it's good to read "Types and Programming Languages" first.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@lancejpollard
Comment options

@atennapel
Comment options

Answer selected by algebraic-dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants