Zulip Chat Archive

Stream: lean4

Topic: theorem search


Bhakti Shah (Jul 05 2023 at 14:32):

is there an equivalent to Coq's Search or something like hoogle that lets you look up a theorem by structure or type? Not familiar enough with conventions to know where to look in the docs / what names to expect. I saw something about library_search somewhere but I haven't been able to find anything actually documenting it.

Ruben Van de Velde (Jul 05 2023 at 14:43):

Library search is now called exact?; there's also apply? for theorems that make progress but don't fully solve the goal

Bhakti Shah (Jul 05 2023 at 14:48):

that is super helpful thank you :) is there a way i can use this outside of an active proof? like if I just want to look something up that isn't in my current goal context.

Martin Dvořák (Jul 05 2023 at 14:55):

You can specify arbitrary goal using have inside a proof or using example outside of a proof.

Anand Rao Tadipatri (Jul 05 2023 at 16:31):

There is also the #find command that allows you to look up theorems and definitions by type. Some examples of its usage are here.


Last updated: Dec 20 2023 at 11:08 UTC