code completions suggesting proofs/definitions to link to when writing a PROOF or SPEC clause #23

Open
opened 2026-10-09 15:06:57 +02:00 by EatOreo · 0 comments
Owner

first do #56

When typing in a SPEC/PROOF clause link like:
PROOF verif_thing.v:body_...
We could suggest the lemmas/theorems inside verif_thing.v as code completions, we can access already get all lemmas/theorems in a rocq file via the vsrocq api: src/commands/services/vsrocq/vsrocq-api.ts
So we would register a completionProvider checking if the cursor is inside a SPEC/PROOF clause_contents node, then fetch all relevant suggestions

first do #56 When typing in a SPEC/PROOF clause link like: PROOF verif_thing.v:body_...<cursor> We could suggest the lemmas/theorems inside verif_thing.v as code completions, we can access already get all lemmas/theorems in a rocq file via the vsrocq api: src/commands/services/vsrocq/vsrocq-api.ts So we would register a completionProvider checking if the cursor is inside a SPEC/PROOF clause_contents node, then fetch all relevant suggestions
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
code2rocq/crocq#23
No description provided.