Skip to content
scrambled
Programming Language Theory Flashcard

Which types are supported in conditional expressions

Question

Which types are supported in conditional expressions' conditions in rocq? why? which values are truthy/falsy?

Answer

  • Inductive types with two constructors.

  • Why: Rocq does not have a built-in boolean.

  • The first constructor is truthy, the second is falsy.