coq-serapi icon indicating copy to clipboard operation
coq-serapi copied to clipboard

Querying proof state in coq-serapi `Query (PrettyStrings, Lists) Goals`

Open brando90 opened this issue 2 years ago • 0 comments

I wanted to be able to get the entire current proof state (local context and goals) with all the individual terms separated, e.g. each term in a lists/arrays.

Pseduocode:

Recall usual Query cmd: (Query ((opt value) ...) kind) 

(Query (PrettyStrings, Lists) Goals)

Get back from Serapi something like:

(Response (LocalContext=[n: nat], Goals=[n + 0 = n], GlobalContext=[]) Completed) 

Ideally the terms can be in a format we want but I personally prefer normal Coq strings.

Bonus: as a bonus it would be nice to have a list of a few of the global context elements too.

brando90 avatar Jun 23 '22 19:06 brando90