Zulip Chat Archive

Stream: mathlib4

Topic: List.append recall


Martin Dvořák (Dec 10 2025 at 13:43):

What makes the following code fail please?

import Mathlib

recall List.append {α : Type _} : List α  List α  List α
  | []  , s => s
  | a::l, s => a :: List.append l s

Markus Himmel (Dec 10 2025 at 13:48):

I don't think recall understands that when you're building the new definition to be checked against the existing one, the List.append in the body is a recursive call.


Last updated: Dec 20 2025 at 21:32 UTC