Sorted sets #
An $S$-sorted set is a family of types. Its category is Mathlib's pointwise category on $S \to \mathsf{Type}$. Subsets and their set operations are taken componentwise.
@[reducible, inline]
An $S$-sorted set with carriers in Type w.
Equations
- CategorialAlgebras.SortedSet S = (S → Type ?u.1)
Instances For
Sorted subsets and mappings #
@[reducible, inline]
abbrev
CategorialAlgebras.SortedSet.Map
{S : Type u}
(A : S → Type v)
(B : S → Type w)
:
Type (max (max u v) w)
A sorted mapping, written as a family of functions.
Equations
- CategorialAlgebras.SortedSet.Map A B = ((s : S) → A s → B s)
Instances For
Regard a family of functions as a morphism in the pointwise category.
Equations
Instances For
theorem
CategorialAlgebras.SortedSet.range_subset_iff_exists_unique
{S : Type u}
{A : S → Type v}
{B : S → Type w}
(f : Map A B)
(U : Subset B)
:
A sorted mapping factors uniquely through a subset exactly when its image lies in it.
The factor is assembled from Mathlib's Set.codRestrict.
Change of sorts #
def
CategorialAlgebras.SortedSet.delta
{S : Type u}
{T : Type v}
(φ : S → T)
:
CategoryTheory.Functor (SortedSet T) (SortedSet S)
Change of sorts $\Delta_\varphi$, using Mathlib's precomposition functor.
Equations
- CategorialAlgebras.SortedSet.delta φ = CategoryTheory.Pi.comap (fun (x : T) => Type ?u.1) φ