Skip to content

Conversation

@TOTBWF
Copy link
Collaborator

@TOTBWF TOTBWF commented Dec 3, 2025

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:

  • I've read the contributing guidelines.
  • The imports of new modules have been sorted with support/sort-imports.hs (or nix run --experimental-features nix-command -f . sort-imports).
  • All new code blocks have "agda" as their language.

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:.

@Lavenza
Copy link
Member

Lavenza commented Dec 3, 2025

Co-authored-by: Amélia <me@amelia.how>
@TOTBWF TOTBWF requested a review from plt-amy January 3, 2026 20:20

:::{.definition #filter-base}
An $I$-indexed family $x_i : I \to P$ is a **filter base** of a filter
$$F \subseteq P$$ if:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
$$F \subseteq P$$ if:
$F \subseteq P$ if:

```
-->

Every principal filter $\uparrow x$ has a filter base consisting of only of element $x$.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"of only of"

Copy link
Member

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?

Comment on lines +30 to +31
$\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$.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
$\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$.

Comment on lines +33 to +37
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
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants