coq - Coq 中的“下一个级别”?
问题描述
以下符号中的“下一级”位是什么意思(假设已经指定了级别):
Reserved Notation "t1 ->> t2" (left associativity, at level 69, t2 at next level).
...
where "t1 ->> t2" := (xform t1 t2).
其中 xform 是介于两者之间的函数。
解决方案
Consider a ->> b ->> c
. There are two ways to parse it, either t1
is a
and t2
is b ->> c
, or t1
is a ->> b
and t2
is c
. Because t2
is marked at next level
, only a notation with a level lower than 69
can be used in there, which makes b ->> c
impossible (unless parenthesized). So, a ->> b ->> c
is parsed as (a ->> b) ->> c
.
Note that t2 at next level
is redundant in the above notation. Indeed, attribute left associative
already forces at next level
on the term at the right end. (While right associativity
forces at next level
on the term at the left end.)
推荐阅读
- reactjs - 映射函数在对象 React 中无法正常工作
- python - 使用 duaiterate.py 工具时与附加文件对应的错误
- python - 我正在使用 Google Colab,需要将一些文件从笔记本复制到我的驱动器。带通配符的命令是什么?(.ipynb 笔记本)
- javascript - 在 discord.js 中获取频道名称
- php - Google 日历 API 更新不会为已删除的事件返回错误
- jquery - 如何在电子中定义一个端点来监听一个发布请求?
- javascript - 连接丢失 - 套接字挂断
- visual-studio - 如何在 Visual Studio 中设置调试工作目录的默认路径
- matlab - 循环中的 if 语句
- next.js - Tailwind 的 JIT 模式在 Next JS 的本地主机预览中不起作用