Nested recursion and `Program Fixpoint` or `Function`

后端 未结 3 1553
借酒劲吻你
借酒劲吻你 2020-12-31 16:14

I’d like to define the following function using Program Fixpoint or Function in Coq:

Require Import Coq.Lists.List.
Import ListNota         


        
3条回答
  •  灰色年华
    2020-12-31 17:02

    You can now do this with Equations and get the right elimination principle automatically, using either structural nested recursion or well-founded recursion

提交回复
热议问题