I have seen a Coq notation definition for "evaluates to" as follows:
Notation "e '||' n" := (aevalR e n) : type_scope.
I am trying to change the symbol '||'
to something else as ||
is often times used for logical or
. However, I always get an error
A left-recursive notation must have an explicit level
For example, this happens when I change '||'
to:
'\|/'
, '\||/'
, '|_|'
, '|.|'
, '|v|'
, or '|_'
.
Is there something special about ||
here? and how should I fix it to make these other notations work (if possible)?