Zulip Chat Archive
Stream: mathlib4
Topic: Filter.EventuallyEq and Sets
Yury G. Kudryashov (Jul 17 2024 at 03:37):
Back in Lean 3, I introduced a hack to use docs#Fitler.EventuallyEq and docs#Filter.EventuallyLE for sets, casting them to α → Prop
behind the scenes. It caused issues back then, it causes issues today. E.g., s =ᶠ[l] ∅
fails without extra type annotation. Also, calc
doesn't work with sets and EventuallyEq
. Should we migrate to set-specific notation?
Yury G. Kudryashov (Jul 17 2024 at 03:38):
If yes, should we let it reduce to (· ∈ s) =ᶠ[l] (· t)
and deal with possible @[simp]
lifications for ∈
, or introduce a new definition and repeat some API?
Yaël Dillies (Jul 17 2024 at 05:18):
I would like us to try the former before trying to repeat API
Patrick Massot (Jul 17 2024 at 07:19):
What are examples of statements you want to use this trick?
Yaël Dillies (Jul 17 2024 at 08:24):
docs#MeasureTheory.setAverage_congr is a good example
Yury G. Kudryashov (Jul 17 2024 at 16:44):
It's very useful in measure theory, where you can say that the sets are a.e. equal. In topology/analysis, you can say that s
belongs to nhdsWithin x t
or t
is eventually less than s
along nhds x
, or write an inequality between nhdsWithin
filters, and we don't have a normal form.
Last updated: May 02 2025 at 03:31 UTC