The slice over a type
Content created by Fredrik Bakke, Egbert Rijke, Jonathan Prieto-Cubides and Elisabeth Stenholm.
Created on 2022-02-01.
Last modified on 2026-05-05.
module foundation.slice where
Imports
open import foundation.dependent-pair-types open import foundation.universe-levels open import trees.polynomial-endofunctors open import trees.universal-polynomial-endofunctor
Idea
The slice of a category over an object X is the category of morphisms into X. A
morphism in the slice from f : A → X to g : B → X consists of a function
h : A → B such that the triangle f ~ g ∘ h commutes. We make these
definitions for types.
Definition
The objects of the slice category of types
Slice : (l : Level) {l1 : Level} (A : UU l1) → UU (l1 ⊔ lsuc l) Slice l = type-polynomial-endofunctor (universal-polynomial-endofunctor l) module _ {l1 l2 : Level} {A : UU l1} (f : Slice l2 A) where type-Slice : UU l2 type-Slice = pr1 f map-Slice : type-Slice → A map-Slice = pr2 f
See also
- Equivalences in the slice over a type characterize equality of slices.
- For slices in the context of category theory see
category-theory.slice-precategories. - Lifts of types for the same concept under a different name.
Recent changes
- 2026-05-05. Fredrik Bakke. Organize slice (#1784).
- 2026-05-02. Fredrik Bakke and Egbert Rijke. Remove dependency between
BUILTINand postulates (#1373). - 2025-10-31. Fredrik Bakke. Refactor polynomial endofunctors (#1645).
- 2025-10-28. Fredrik Bakke. Morphisms of polynomial endofunctors (#1512).
- 2024-04-11. Fredrik Bakke and Egbert Rijke. Propositional operations (#1008).