Polynomial Functors, Lens, and Charts #
This file defines polynomial functors, lenses, and charts. The goal is to provide basic definitions, with their properties and categories defined in later files.
The monomial functor, also written P(X) = A X^ B
, has A
as its head type and the constant
family B_a = B
as the child type for each each shape a : A
.
Equations
Instances For
The monomial functor, also written P(X) = A X^ B
, has A
as its head type and the constant
family B_a = B
as the child type for each each shape a : A
.
Equations
Instances For
The self monomial polynomial functor P(X) = S X^ S
Equations
Instances For
The pure power polynomial functor P(X) = X^ B
Equations
Instances For
A polynomial functor is representable if it is equivalent to X^A
for some type A
.
Equations
Instances For
The sum (coproduct) of two polynomial functors P
and Q
, written as P + Q
.
Defined as the sum of the head types and the sum case analysis for the child types.
Note: requires the B
universe levels to be the same.
Equations
Instances For
Addition of polynomial functors, defined as the sum construction.
Equations
Alias of PFunctor.sum
.
The sum (coproduct) of two polynomial functors P
and Q
, written as P + Q
.
Defined as the sum of the head types and the sum case analysis for the child types.
Note: requires the B
universe levels to be the same.
Equations
Instances For
The generalized sum (sigma type) of an indexed family of polynomial functors.
Equations
Instances For
The product of two polynomial functors P
and Q
, written as P * Q
.
Defined as the product of the head types and the sum of the child types.
Equations
Instances For
Multiplication of polynomial functors, defined as the product construction.
Equations
The generalized product (pi type) of an indexed family of polynomial functors.
Equations
Instances For
The tensor (also called parallel or Dirichlet) product of two polynomial functors P
and Q
.
Defined as the product of the head types and the product of the child types.
Equations
Instances For
Infix notation for tensor product P ⊗ Q
Equations
Instances For
The unit for the tensor product Y
Equations
Instances For
Repeated composition P ◃ P ◃ ... ◃ P
(n times).
Equations
Instances For
Lift a polynomial functor P
to a pair of larger universes.
Equations
Instances For
Exponential of polynomial functors P ^ Q
Equations
Instances For
A polynomial functor is finitely branching if each of its branches is a finite type.
Instances
Equations
Equations
An equivalence between two polynomial functors P
and Q
, written P ≃ₚ Q
, is given by an
equivalence of the A
types and an equivalence between the B
types for each a : A
.
An equivalence between the
A
typesAn equivalence between the
B
types for eacha : A
Instances For
An equivalence between two polynomial functors P
and Q
, written P ≃ₚ Q
, is given by an
equivalence of the A
types and an equivalence between the B
types for each a : A
.
Equations
Instances For
The identity equivalence between a polynomial functor P
and itself.
Equations
Instances For
The inverse of an equivalence between polynomial functors.
Equations
Instances For
The composition of two equivalences between polynomial functors.
Equations
Instances For
Equivalence between two polynomial functors P
and Q
that are equal.
Equations
Instances For
A lens between two polynomial functors P
and Q
is a pair of a function:
Instances For
A chart between two polynomial functors P
and Q
is a pair of a function: