Zulip Chat Archive
Stream: new members
Topic: Filters in mathlib
Pedro Minicz (Sep 30 2020 at 15:50):
Is there any particular reason why filter.has_top is {s : set α | ∀ (x : α), x ∈ s} and not {set.univ}. I strongly believe both are equivalent, except that the latter is clearer.
Pedro Minicz (Sep 30 2020 at 15:56):
Also, any reason why the preorder on filter is f ≤ g := g ⊆ f and not f ⊆ g?
Yury G. Kudryashov (Sep 30 2020 at 16:00):
Pedro Minicz said:
Is there any particular reason why filter.has_top is
{s : set α | ∀ (x : α), x ∈ s}and not{set.univ}. I strongly believe both are equivalent, except that the latter is clearer.
This and some other definitions are optimized for better definitional equalities. E.g., for top with the current definition s \in \top can be applied to x to get x \in s.
Yury G. Kudryashov (Sep 30 2020 at 16:00):
Pedro Minicz said:
Also, any reason why the preorder on filter is
f ≤ g := g ⊆ fand notf ⊆ g?
This way principal is monotone.
Last updated: May 02 2025 at 03:31 UTC