我想将 alist of integer转换为 a list of nat。这是我返回的函数Coq。
Fixpoint list_int_to_nat (l : list integer) : list nat :=
match l with
| nil => nil
| x :: l' => let i := Z.to_nat x in
list_int_to_nat l'
end.
你能帮我把列表的每个元素翻译integer成一个列表吗nat,因为在我的函数中我没有使用第一个元素i?非常感谢您的帮助。