Can I import a Coq module in an elpi file to use the imported notations in quotes?
The elpi files are Accumulate (hence parsed/compiled) in a Coq context.
Require Import MyNotations.
Elpi Command x.
Elpi Accumulate File "f". (* this file can use the current Coq notations *)
I a notation is not available, or a contant not defined, you get a Coq error. Elpu uses the Coq parser behind the scenes for the quoted code.
Last updated: Oct 13 2024 at 01:02 UTC