Documentation

CategorialAlgebras.Preliminaries.SortedSet

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]
abbrev CategorialAlgebras.SortedSet (S : Type u) :
Type (max u (w + 1))

An $S$-sorted set with carriers in Type w.

Equations
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
    Instances For
      @[reducible, inline]
      abbrev CategorialAlgebras.SortedSet.Subset {S : Type u} (A : SortedSet S) :
      Type (max u w)

      A sorted subset of $A$. Pointwise set operations give its complete lattice.

      Equations
      Instances For
        @[reducible, inline]
        abbrev CategorialAlgebras.SortedSet.Subset.carrier {S : Type u} {A : SortedSet S} (U : A.Subset) (s : S) :

        The sorted set underlying a sorted subset.

        Equations
        Instances For
          def CategorialAlgebras.SortedSet.homOfMap {S : Type u} {A B : SortedSet S} (f : Map A B) :
          A ⟶ B

          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) :
            (∀ (s : S), Set.range (f s) ⊆ U s) ↔ ∃! h : Map A U.carrier, ∀ (s : S) (x : A s), ↑(h s x) = f s x

            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 #

            Change of sorts $\Delta_\varphi$, using Mathlib's precomposition functor.

            Equations
            Instances For