Hi all, is there any documentation for coq-elpi (other than the source code and excellent tutorials) ? I'm looking for something in the style of https://coq.inria.fr/doc/master/api/coq-core/index.html which allows me to browse the different modules/files online and follow links by clicking on the types and terms that are documented.
Scroll to the end of the REAME in the github repo. You find a short DOC of the vernacular commands and pointers to the files with the APIs.
If you don't find what you are looking for, feel free to ask here.
These files are well commented, but not an hypertext. Still APIs are named quite consistently, usually text search on these files is quite effective.
Thanks for the pointers. Is there a kind of LSP for Elpi which would allow me to follow "links" by looking at the source code in e.g. VSCode ?
No, there is no language-server implementing intellisense. Maybe one day, @Romain Tetley ;-)
The main reason is that the "compiler" and the "type checker" are a bit too much of a contraption. I hope to improve these components in the coming year. After that building an LSP server would be possible, but today it is not easy at all.
Out of curiosity, which piece of software are you trying to understand or build?
Ok I see, future work ;-)
I'm currently learning Elpi so no serious piece of software yet. The goal will be to compare it to other metalanguages in the Coq ecosystem (Ltac2, MetaCoq, Ocaml Plugins, etc) by writing toy commands/tactics in each of the languages.
Working with Yannick Forster.
Then I recommend you start by looking at the proof-of-concept section of the README: https://github.com/LPCIC/coq-elpi?tab=readme-ov-file#small-examples-proofs-of-concept
These are small, commented, Elpi programs.
Last updated: Oct 13 2024 at 01:02 UTC