Zulip Chat Archive
Stream: mathlib4
Topic: Finset.Nonempty
María Inés de Frutos Fernández (Jan 17 2024 at 10:27):
The following #mwe results in the error type expected, got (hs : s.Nonempty)
. Any suggestions? Thanks!
import Mathlib.Data.Fintype.Basic
-- type expected, got (hs : s.Nonempty)
example {ι : Type*} {s : Finset ι} (hs : s.Nonempty): true := by
have h : ∃ (x : s) (hs' : (hs → true)), true := sorry
sorry
Ruben Van de Velde (Jan 17 2024 at 10:28):
What do you think (hs → true)
means there?
María Inés de Frutos Fernández (Jan 17 2024 at 10:43):
"If the finset s is nonempty, then true".
Yaël Dillies (Jan 17 2024 at 10:43):
That would be s.Nonempty → True
María Inés de Frutos Fernández (Jan 17 2024 at 10:49):
Oh, sorry, I now see what I caused my confusion (this mwe was coming from a ported file; I was mixing up univ_nonempty
and univ.Nonempty
). Thanks.
Last updated: May 02 2025 at 03:31 UTC