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

defn: W-types are initial algebras #250

Merged
merged 1 commit into from
Aug 17, 2023
Merged

Conversation

ncfavier
Copy link
Member

Description

Formalising HoTT book section 5.4 by showing that $W$-types are initial algebras for polynomial endofunctors.

Checklist

Before submitting a merge request, please check the items below:

  • The imports are sorted (use find -type f -name \*.agda -or -name \*.lagda.md | xargs support/sort-imports.hs)

  • All code blocks have "agda" as their language. This is so that
    tools like Tokei can report accurate line counts for proofs vs. text.

  • Proofs are explained to a satisfactory degree; This is subjective,
    of course, but proofs should be comprehensible to a hypothetical human
    whose knowledge is limited to a working understanding of non-cubical
    Agda, and the stuff your pages link to.

The following items are encouraged, but optional:

  • If you feel comfortable, add yourself to the Authors page! Add a
    profile picture that's recognisably "you" under support/pfps; The
    picture should be recognisable at 128x128px, should look good in a
    squircle, and shouldn't be more than 200KiB.

  • If your contribution makes mention of a negative statement, but
    does not prove the negative (perhaps because it would distract from the
    main point), consider adding it to the counterexamples folder.

  • If a proof can be done in both "cubical style", and "book HoTT
    style", and you have the energy to do both, consider doing both!
    However, it is completely fine to only do one! For instance, I
    (Amélia) am much better at writing proofs "book-style".

If a commit affects many files without adding any content and you don't
want your name to appear on those pages (for example, treewide refactorings
or reformattings), start the commit message with chore: or include the word
NOAUTHOR anywhere.

@ncfavier ncfavier force-pushed the W-initial branch 2 times, most recently from 4adf036 to 7d12b2a Compare August 16, 2023 22:36

```agda
coherent : Square (λ i → unique i ∘ W-algebra .snd) refl hom (λ i → c ∘ P₁ (unique i))
coherent = transpose (flip₁ (∙-filler _ _))
Copy link
Member

Choose a reason for hiding this comment

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

😍 Wow!

Copy link
Member

Choose a reason for hiding this comment

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

Pfft, I can't leave a compliment on the code without GH thinking it needs to be resolved

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, this proof is a small miracle

@plt-amy plt-amy enabled auto-merge (squash) August 17, 2023 14:41
@plt-amy plt-amy merged commit 90de794 into the1lab:main Aug 17, 2023
2 checks passed
@ncfavier ncfavier deleted the W-initial branch August 17, 2023 15:12
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