Reduced the issue to a self-contained, reproducible test case.
Description
I couldn't see a tracking issue for this, so thought I'd create one to refer to from mathlib4.
We quite often use Nat.rec and List.rec, and neither are supported by the code generator:
Prerequisites
Description
I couldn't see a tracking issue for this, so thought I'd create one to refer to from mathlib4. We quite often use
Nat.rec
andList.rec
, and neither are supported by the code generator:https://github.com/leanprover/lean4/blob/a125a36bcc79a28963ed5786f94c5d97648a8f99/src/Lean/CoreM.lean#L280-L295
Steps to Reproduce
Run
Expected behavior: Prints 0
Actual behavior:
Reproduces how often: 100%