Multivariate polynomial functors. #
Multivariate polynomial functors are used for defining M-types and W-types.
They map a type vector α
to the type Σ a : A, B a ⟹ α
, with A : Type
and
B : A → TypeVec n
. They interact well with Lean's inductive definitions because
they guarantee that occurrences of α
are positive.
multivariate polynomial functors
- A : Type u
The head type
- B : self.A → TypeVec.{u} n
The child family of types
Instances For
Applying P
to an object of Type
Equations
Instances For
Equations
Applying P
to a morphism of Type
Equations
Instances For
Equations
Constant functor where the input object does not affect the output
Equations
Instances For
Constructor for the constant functor
Equations
Instances For
Destructor for the constant functor
Equations
Instances For
Functor composition on polynomial functors
Equations
Instances For
Constructor for functor composition
Equations
Instances For
Destructor for functor composition
Equations
Instances For
Split polynomial functor, get an n-ary functor
from an n+1
-ary functor
Equations
Instances For
Split polynomial functor, get a univariate functor
from an n+1
-ary functor