Bundled types #
Bundled c
provides a uniform structure for bundling a type equipped with a type class.
We provide Category
instances for these in CategoryTheory/UnbundledHom.lean
(for categories with unbundled homs, e.g. topological spaces)
and in CategoryTheory/BundledHom.lean
(for categories with bundled homs, e.g. monoids).
A generic function for lifting a type equipped with an instance to a bundled object.
Equations
Instances For
instance
CategoryTheory.Bundled.coeSort
{c : Type u → Type v}
:
CoeSort (CategoryTheory.Bundled c) (Type u)
Equations
- CategoryTheory.Bundled.coeSort = { coe := CategoryTheory.Bundled.α }
theorem
CategoryTheory.Bundled.coe_mk
{c : Type u → Type v}
(α : Type u)
(str : c α)
:
↑(CategoryTheory.Bundled.mk α) = α
def
CategoryTheory.Bundled.map
{c : Type u → Type v}
{d : Type u → Type v}
(f : {α : Type u} → c α → d α)
(b : CategoryTheory.Bundled c)
:
Map over the bundled structure