-
Notifications
You must be signed in to change notification settings - Fork 89
Filters #573
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
New pages
Changed pages
|
Co-authored-by: Amélia <me@amelia.how>
|
|
||
| :::{.definition #filter-base} | ||
| An $I$-indexed family $x_i : I \to P$ is a **filter base** of a filter | ||
| $$F \subseteq P$$ if: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| $$F \subseteq P$$ if: | |
| $F \subseteq P$ if: |
| ``` | ||
| --> | ||
|
|
||
| Every principal filter $\uparrow x$ has a filter base consisting of only of element $x$. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"of only of"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe link this to and from Order.Instances.Lower?
| $\int F$, is the poset whose elements are the a $x : P$ such that $F(x)$ holds, where the order | ||
| is given the ordering of $P$. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| $\int F$, is the poset whose elements are the a $x : P$ such that $F(x)$ holds, where the order | |
| is given the ordering of $P$. | |
| $\int F$, is the poset whose elements are the $x : P$ such that $F(x)$ holds, where the order | |
| is given by the ordering of $P$. |
| record Net {od ℓd ℓx} (D : Poset od ℓd) (X : Type ℓx) : Type (od ⊔ ℓd ⊔ ℓx) where | ||
| no-eta-equality | ||
| field | ||
| net : ⌞ D ⌟ → X | ||
| dom-directed : is-upwards-directed D |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This feels a bit strange: Net D X is empty if D is not upwards-directed. I think it would be cleaner to either have both the indexing poset and the fact that it's upwards directed as parameters or both as fields.
Description
This PR defines filters in posets, and proves some basic facts about them.
I've also added some basic supporting infrastructure for directed sets. At some point we should port DCPOs over to use this, but this is probably best done in a separate PR.
Checklist
Before submitting a merge request, please check the items below:
support/sort-imports.hs(ornix run --experimental-features nix-command -f . sort-imports).If your change affects many files without adding substantial content, and
you don't want your name to appear on those pages (for example, treewide
refactorings or reformattings), start the commit message and PR title with
chore:.