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

Print a sentence with the notation interpretation, scope resolution, and explicit arguments

Open darbyhaller opened this issue 5 years ago • 2 comments

Hi,

I would like to be able to print a given input sentence with the notation interpreted, all arguments explicit, and the scopes resolved by Coq's internalization process.

For example, after inputting (Add () "Lemma test: forall n:nat, n = n. Proof. assert (H: forall n, n + 0 = n).") and executing it, applying some query command to the sentence assert (H: forall n, n + 0 = n). would return assert (H : forall (n:nat), @eq nat (Nat.add n O) n). (and nat would instead be Coq.Init.Datatypes.nat, Nat.add would be Coq.Init.Nat.add, etc.)

darbyhaller avatar May 15 '19 21:05 darbyhaller

Ack, as discussed on Gitter there are several alternatives; I will prepare a proposal to expose internalization next week, let's see if that's enough for your use case.

ejgallego avatar May 15 '19 22:05 ejgallego

Is there any progress on that front, or can I help in some ways ?

vsiles avatar Jun 10 '20 07:06 vsiles