Clean up APIs for terminal and initial objects#647
Open
TOTBWF wants to merge 6 commits into
Open
Conversation
Our previous definition was directly in terms of contractibility, which led to some gnarly goals.
TOTBWF
force-pushed
the
terminal-initial-cleanup
branch
from
July 8, 2026 21:10
0229880 to
b59c351
Compare
Member
Changed pages
|
plt-amy
reviewed
Jul 9, 2026
plt-amy
requested changes
Jul 9, 2026
Comment on lines
+77
to
+80
| Extensional-Initial | ||
| : ∀ {ℓr} | ||
| → ⦃ sa : Extensional Ob ℓr ⦄ | ||
| → Extensional (Initial C) ℓr |
Collaborator
Author
There was a problem hiding this comment.
We use it to prove ⊥-is-prop later down in this file.
plt-amy
requested changes
Jul 9, 2026
plt-amy
left a comment
Member
There was a problem hiding this comment.
blank lines around code blocks
ncfavier
approved these changes
Jul 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Previously, we defined initial and terminal objects directly via contractibility. This led to some really baroque goals, as things like
term.!unfolded toterm _ . centre. This PR definesis-initialandis-terminalrecords, and ports over all code to use the new records. I've also take the opportunity to sprinkle around someINLINEpragrams on helper functions that create initial/terminal objects.On a whole, the code looks a lot clearer, though there are some places where things get a bit uglier.