Hi! I have the following signature for a definition using equations:
Equations value_repr (p : val) (v : lean_value unit) : iProp by struct v:= {
For some reason, Coq / Equations are reporting the following error:
Error: Syntax error: 'wf' or 'struct' expected after 'by' (in [wf_annot]).
Does this make sense to someone?
Do you still have it if you add a space before :=
? (Just a random thought.)
The situation disappeared I believe after I saved my buffer. The current version still features this : iProp by struct v:=
There's a subtle bug with the handling of by
I think, sometimes requiring a restart of the buffer. Side-effects in the grammar definition I believe.
That's interesting. I didn't think that could be a useful solution. Is it somehow getting cached?
I think it's the dreaded ident/keyword mixup. I'll try something
@Pierre-Marie Pédrot does it make sense that if I put IDENT "by"
in an mlg, we don't get this strange behavior?
Hmm, I can't reproduce the problem actually
Ah I think I got it, using IDENT "struct"
works better
Last updated: May 28 2023 at 18:29 UTC