Zulip Chat Archive
Stream: new members
Topic: Searching proofs
Xavier Généreux (Nov 08 2022 at 16:32):
Hey all! Currently my strategy to get a feel of how things work is to find a pre-existing proof in mathlib that resembles what I am trying to do and adapt it.
That being said, I would much prefer seeing examples of the lemmas that seem like they could do the trick in action. E. g. is there any way to find proofs that use, say, le_Sup? This would help me understand how it is used.
Riccardo Brasca (Nov 08 2022 at 16:38):
In VS Code you can use ctrl+shift+f to search in a whole project (mathlib for example). You will find all occurrences of le_Sup
.
Yakov Pechersky (Nov 08 2022 at 16:41):
However, lemmas that are very "simple" like inf_le_sup
could be occurring more often than a Ctrl-F finds, because it might be part of a simp
step.
Johan Commelin (Nov 08 2022 at 16:42):
Related: the suggest
tactic.
Xavier Généreux (Nov 08 2022 at 16:44):
Thanks!
Last updated: Dec 20 2023 at 11:08 UTC