Skip to content
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

Simplex Category #375

Draft
wants to merge 18 commits into
base: main
Choose a base branch
from
Draft

Simplex Category #375

wants to merge 18 commits into from

Conversation

TOTBWF
Copy link
Collaborator

@TOTBWF TOTBWF commented Apr 12, 2024

Description

This PR reworks the simplex category to make it more amenable to defining diagrams. It also proves a whole host of properties about it, which required the introduction of antiinjective and antisurjective functions. I was not able to find a better name for these, so suggestions are welcome!

Finally, this PR also introduces a bit of machinery for constructing concrete categories: a macro is used to introduce
top-level copattern matches so that we can get better goal display.

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

@TOTBWF
Copy link
Collaborator Author

TOTBWF commented Apr 12, 2024

Just putting this up for a CI run, prose is still a bit rough

@Lavenza
Copy link
Member

Lavenza commented Apr 12, 2024

Pull request preview

plt-amy pushed a commit that referenced this pull request Jun 21, 2024
There are a couple of places in the 1Lab where we manually eta-expand
out copattern definitions by hand to get better goal display. This
mostly comes up when dealing with things like subcategories/forgetful
functors; Agda will very happily unfold your nicely named category into
`Restrict Blah`, which is not particularly helpful!

Manually performing these copattern expansions is a bit of a pain, so
this PR adds a small macro that performs this mechanical busywork for
us. This removes the need for the `declare-concrete-category` macro in
#375.
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.

2 participants