Zulip Chat Archive

Stream: mathlib4

Topic: uniformize binders


Floris van Doorn (Oct 28 2024 at 11:16):

Can we uniformize what binder notation is allowed?

import Mathlib.Order.SetNotation

#check ∃ n : ℕ, n = n
#check ∃ (n : ℕ), n = n
#check ∃ n m : ℕ, n = n
#check ∃ (n m : ℕ), n = n
#check ∃ n < 5, n = n
#check ∃ (n < 5), n = n -- error
#check ⋃ n : ℕ, {n}
#check ⋃ (n : ℕ), {n}
#check ⋃ n m : ℕ, {n} -- error
#check ⋃ (n m : ℕ), {n} -- error
#check ⋃ n < 5, {n}
#check ⋃ (n < 5), {n}

Floris van Doorn (Oct 28 2024 at 11:16):

(@Kyle Miller)

Eric Wieser (Oct 28 2024 at 11:24):

This gets even more complex with the finset summation notation, for which only some binders make sense

Yaël Dillies (Oct 28 2024 at 11:24):

(please don't bring up ∑ _, _ and {_ | _} :see_no_evil:)

Yaël Dillies (Oct 28 2024 at 11:25):

(too late :grinning:)


Last updated: Feb 28 2026 at 14:05 UTC