Zulip Chat Archive
Stream: new members
Topic: Lemma search
Jakub Kądziołka (Mar 02 2022 at 18:53):
Hi, is there a way to ask Lean, say, "show me all lemmas that mention finset and the existential quantifier"? I'm trying to remove a specific element from a finset, and I can't see any function that would remove an element, so if the functionality is available, I'd assume it's in the form of some of existential statement
Adam Topaz (Mar 02 2022 at 19:01):
We have the #find
command, but in this case, you could use docs#finset.filter and filter out everything equal to the element you want to drop.
Adam Topaz (Mar 02 2022 at 19:01):
I don't know off the top of my head if we have a better way to remove a single element from a finset.
Adam Topaz (Mar 02 2022 at 19:02):
Oh, nevermind, we have docs#finset.erase
Adam Topaz (Mar 02 2022 at 19:04):
Note that finset.erase shows up with this code:
import data.finset.basic
#find finset _ → _ → finset _
Last updated: Dec 20 2023 at 11:08 UTC