【发布时间】:2023-04-10 20:48:02
【问题描述】:
我已经向question 询问了有关 Idris 类型检查 Universe 的方式。现在我正在尝试一些会导致宇宙不一致的例子。这是我能想到的最简单的方法
foo : Type
foo = Type
bar : Main.foo
bar = Main.foo
输出错误是:
test.idr:2:5:Universe inconsistency.
Working on: z
Old domain: (4,4)
New domain: (4,3)
Involved constraints:
ConstraintFC {uconstraint = z <= w, ufc = test.idr:2:5}
ConstraintFC {uconstraint = y < z, ufc = test.idr:2:5}
ConstraintFC {uconstraint = z <= w, ufc = test.idr:2:5}
除了上面的例子,还有没有更真实的例子导致宇宙不一致?为什么它们不一致?
【问题讨论】: