Zulip Chat Archive
Stream: lean4
Topic: CoqSearch and friends?
Siddharth Bhat (Dec 25 2021 at 15:41):
How does one search for identifiers by name or type?
- In plain Coq, one can use the
Search
command to search based on identifiers, and if I recall correctly, types. - Using
proof-general
inemacs
, one has search functionality in the plugin to find identifiers.
What's the correct equivalent I should use in tLean ?
Henrik Böving (Dec 25 2021 at 15:52):
I currently use a mix of autocompletion and grep
, I'm not aware of any alternative (sadly).
Sebastian Ullrich (Dec 25 2021 at 16:06):
We have https://github.com/leanprover-community/mathlib4/blob/master/Mathlib/Tactic/Find.lean for type-directed search (and of course library_search
for heavier search automation)
Sebastian Ullrich (Dec 25 2021 at 16:06):
Searching by name is just autocompletion, no? :)
Tomas Skrivan (Dec 25 2021 at 16:22):
I was curious about something similar recently. Can find
and library_search
list all theorems that can be used in rw
on the current goal?
Johan Commelin (Dec 25 2021 at 16:23):
There is rw_search
in mathlib. It has some performance issues, and it hasn't been ported to Lean 4.
Last updated: Dec 20 2023 at 11:08 UTC