Equivalences of Polynomial Functors #
This file defines equivalences between polynomial functors and proves basic properties about them.
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.
We provide various canonical equivalences for operations on polynomial functors, such as:
- Sum operations:
P + 0 ≃ₚ P,0 + P ≃ₚ P - Product operations and their properties
- Equivalences for sigma and pi constructions
- Universe lifting equivalences
- Tensor product equivalences
- Composition equivalences
Main definitions #
PFunctor.Equiv: An equivalence between two polynomial functors≃ₚ: Notation for polynomial functor equivalences
Main results #
- Basic equivalence properties: reflexivity, symmetry, transitivity
- Canonical equivalences for sum, product, and other constructions on polynomial functors
Addition with the zero functor on the left is equivalent to the original functor
Instances For
Addition with the zero functor on the right is equivalent to the original functor
Instances For
Sum of polynomial functors is commutative up to equivalence
Instances For
Sum of polynomial functors is associative up to equivalence
Instances For
If P ≃ₚ R and Q ≃ₚ S, then P + Q ≃ₚ R + S
Instances For
Rearrangement of nested sums: (P + Q) + (R + S) ≃ₚ (P + R) + (Q + S)
Instances For
Product with 0 on the right is 0
Instances For
Product with 0 on the left is 0
Instances For
Product with the unit functor on the right is equivalent to the original functor
Instances For
Product with the unit functor on the left is equivalent to the original functor
Instances For
Product of polynomial functors is commutative up to equivalence
Instances For
Product of polynomial functors is associative up to equivalence
Instances For
Equivalence is preserved under product: if P ≃ₚ R and Q ≃ₚ S, then P * Q ≃ₚ R * S
Instances For
Rearrangement of nested products: (P * Q) * (R * S) ≃ₚ (P * R) * (Q * S)
Instances For
Sum distributes over product: (P + Q) * R ≃ₚ (P * R) + (Q * R)
Instances For
Product distributes over sum: P * (Q + R) ≃ₚ (P * Q) + (P * R)
TODO: define in terms of sumProdDistrib
Instances For
Sigma of an empty family is the zero functor.
Instances For
Instances For
Sigma of a PUnit-indexed family is equivalent to the functor itself.
Instances For
Left distributivity of sum over sigma.
Instances For
Right distributivity of sum over sigma.
Instances For
Left distributivity of product over sigma.
Instances For
Right distributivity of product over sigma.
Instances For
Left distributivity of tensor product over sigma.
Instances For
Right distributivity of tensor product over sigma.
Instances For
Right distributivity of composition over sigma.
Instances For
Pi over a PUnit-indexed family is equivalent to the functor itself.
Instances For
Equivalence between a polynomial functor and its universe-lifted version
Instances For
Universe lifting is idempotent up to equivalence
Instances For
Universe lifting commutes with sum
Instances For
Universe lifting commutes with product.
Instances For
Tensor product with 0 on the right is 0
Instances For
Tensor product with 0 on the left is 0
Instances For
Tensor product with 1 on the right is equivalent to the constant functor
Instances For
Tensor product with 1 on the left is equivalent to the constant functor
Instances For
Tensor product with the functor Y on the right
Instances For
Tensor product with the functor Y on the left
Instances For
Tensor product of polynomial functors is commutative up to equivalence
Instances For
Tensor product of polynomial functors is associative up to equivalence
Instances For
Tensor product preserves equivalences: if P ≃ₚ R and Q ≃ₚ S, then P ⊗ Q ≃ₚ R ⊗ S
Instances For
Rearrangement of nested tensor products: (P ⊗ Q) ⊗ (R ⊗ S) ≃ₚ (P ⊗ R) ⊗ (Q ⊗ S)
Instances For
Sum distributes over tensor product: (P + Q) ⊗ R ≃ₚ (P ⊗ R) + (Q ⊗ R)
Instances For
Tensor product distributes over sum: P ⊗ (Q + R) ≃ₚ (P ⊗ Q) + (P ⊗ R)
Instances For
Associativity of composition
Instances For
Composition with X is identity (right)
Instances For
Composition with X is identity (left)
Instances For
Distributivity of composition over sum on the right
Instances For
Composition distributes over product on the left.