Error in defining Ackermann in Coq

前端 未结 3 1672
终归单人心
终归单人心 2020-12-31 09:37

I am trying to define the Ackermann-Peters function in Coq, and I\'m getting an error message that I don\'t understand. As you can see, I\'m packaging the arguments a,

3条回答
  •  忘掉有多难
    2020-12-31 10:01

    I just tried your function with Coq 8.4, and the error is slightly different:

    Error: Nested recursive function are not allowed with Function
    

    I guess the inner call to ack is the problem, but I don't know why.

    Hope this helps a bit, V.

    PS: The usual way I define Ack is what wires wrote, with an inner fixpoint.

提交回复
热议问题