the1lab / 1lab

A formalised, cross-linked reference resource for mathematics done in Homotopy Type Theory
https://1lab.dev
GNU Affero General Public License v3.0
348 stars 68 forks source link

FinSets is finitely (co)complete #401

Closed ncfavier closed 4 months ago

ncfavier commented 4 months ago

Description

Shows that the category of finite sets is finitely complete and cocomplete.

The main difficulty is constructing coequalisers. We take a conceptually simple but inefficient approach: we start by constructing quotients of decidable equivalence relations, show that coequalisers can be built as quotients of a closure, and that the closure of a decidable relation on a finite set is decidable (essentially by a pathfinding algorithm built by induction on the size of the finite set).

Checklist

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

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 commented 4 months ago

Pull request preview