Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • 1
    $\begingroup$ I’m not sure what you mean by “latter is not an inductive type”. Are you are saying that because product is a structure instead of an inductive type, that is the reason the termination checker fails. If so, I don’t think that is the reason. match works fine on structures as well as inductive types. I think it has more to do with the fact that you are matching on an inductive/structure type other than the inputs to the function. $\endgroup$
    – Jason Rute
    Commented Aug 30, 2023 at 14:47
  • $\begingroup$ You are right, indeed, thanks. I edited the answer $\endgroup$ Commented Aug 30, 2023 at 14:58
  • 1
    $\begingroup$ Thank you! Adding parens makes it a pair instead of... I don't don't what it's called. A simultaneous match pattern? $\endgroup$
    – Nate Glenn
    Commented Aug 30, 2023 at 22:33