Zulip Chat Archive

Stream: Is there code for X?

Topic: nonemptiness tactic


Yaël Dillies (Jan 02 2022 at 16:16):

We have docs#tactic.interactive.nontriviality. How hard would it be to have a version that deals with nonemptiness instead?

Eric Rodriguez (Jan 02 2022 at 16:19):

i wonder if nontrivial s does much :b i don't know there's a lemma that if is_empty coe_sort set then the set is empty (and similarly for set_like etc)

Yaël Dillies (Jan 02 2022 at 16:25):

We have docs#is_empty_or_nonempty

Eric Rodriguez (Jan 02 2022 at 16:42):

oh, d-oh, I see what you mean; I thought you meant for sets

Gabriel Ebner (Jan 02 2022 at 17:06):

There is also https://leanprover-community.github.io/mathlib_docs/tactics.html#inhabit


Last updated: Dec 20 2023 at 11:08 UTC