Programming Language Theory Flashcard
How to define recursive types in rocq?
Books
Concepts
Deckrocq-programming-language
Question
How to define recursive types in rocq?
Answer
Just use the Inductive type definition. For example:
coq
Inductive nat : Type :=
| O
| S (n : nat).