arend-lang / tutorial-code

Source code & exercises in Arend's documentation
https://arend-lang.github.io/documentation/tutorial
Apache License 2.0
21 stars 9 forks source link

(probably) Incorrect example #16

Open DanielRrr opened 1 year ago

DanielRrr commented 1 year ago

In Propositions and sets/Mere Proposition, there is the following example:

\func Unit-isProp : isProp Unit => \lam x y => idp

which is rejected with

[ERROR] Intro.ard:543:48: Expressions are not equal
  Left:  x
  Right: y
  In: idp

I was using a freshly built version of the Arend Idea plugin.

Either the proof is wrong (but it doesn't seem so) or there is a bug in the typechecker.