Zulip Chat Archive

Stream: lean4

Topic: Adding `@[grind →]` to `List.sizeOf_lt_of_mem`


Mai (Feb 16 2026 at 04:27):

Could we add @[grind →] to List.sizeOf_lt_of_mem? This is somewhat of a painpoint when trying to quickly prove termination of mutually recursive functions (see #general > Showing termination for mutually recursive definitions ).

Yury G. Kudryashov (Feb 16 2026 at 04:35):

docs#List.sizeOf_lt_of_mem to save others a few clicks.

Jovan Gerbscheid (Feb 16 2026 at 07:42):

I get the impression that we should wait for core to figure this out themselves so that grind knows about such theorems automatically.


Last updated: Feb 28 2026 at 14:05 UTC