Want to take part in these discussions? Sign in if you have an account, or apply for one below
Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.
1 to 6 of 6
I only just noticed:
Taking coproduct and product as adjoints to duplication, , then the pair of introduction rules for coproduct amounts to the unit of the monad, , and the pair of elimination rules for product the counit of the comonad, .
The other (co)unit gives, and .
Is there anything useful and general to say about introduction/elimination and co(units)?
Yes, this is some of the fundamental dogma of type theory’s relationship with categories: When a type former models a right adjoint with , its elimination rule(s) are modeled by the counit of the adjunction and its introduction rule is given by one direction of the Hom isomorphism: . For products we have the counit is a morphism in : modeling the two projections and the introduction rule gives a natural transformation that takes a morphism in of the form and constructs a in . The naturality on the left is the definition of substitution.
And then you have the dual which is that for types that model a left adjoint the introduction rule is modeled by the unit and the elimination rule is given by the opposite direction of the Hom isomorphism.
As for general theorems there’s not much to say since there’s so little structure except maybe what’s on this page: https://ncatlab.org/nlab/show/representability+determines+functoriality which says that the presentation in type theory is enough to define the functorial action, which is just a categorification of the fact that you can prove that the functions in a galois connection are monotone from the galois connection data.
Thanks. By the way to get a link to the nLab page, just enclose the name in double square parentheses, so representability determines functoriality.
I found a paper, An Algorithmic Interpretation of a Deep Inference System, which claims to prefer going the whole way and using both units and counits (“this improvement over the situation in natural deduction”, p. 495).
Our system corresponds to the more symmetric specification of an adjunction based on two functors and unit and counit. (p. 494)
I don’t know if they “prefer” it but they have some specific goal of modeling this “Deep Inference” system. That style of system is a kind of “categorical combinator” calculus.
The big differences between their system and natural deduction are
For products, they add the counit in the form of the two destructors , and they add the unit, i.e., the diagonal , but then they also need to add the functorial action of the product which is when . You need to add functoriality explicitly because it’s not definable from the unit and counit, whereas it is definable from the counit and one direction of the hom isomorphism.
BTW, to make a numbered list display as a list, you need a paragraph break (blank line) before it:
I hadn’t thought of this before:
In view of the fact that product appears as the non-dependent dependent sum, it’s unsurprising that both product type and dependent sum type are given via both positive and negative polarities. Now for the negative polarity, as above
When a type former models a right adjoint with , its elimination rule(s) are modeled by the counit of the adjunction and its introduction rule is given by one direction of the Hom isomorphism: . For products we have the counit is a morphism in : modeling the two projections and the introduction rule gives a natural transformation that takes a morphism in of the form and constructs a in . The naturality on the left is the definition of substitution.
How then to think of dependent sum as a right adjoint?
For a dependent type given by , we want to be equivalent to maps from to factoring through . So that’s maps in the arrow category between and .
So the negative presentation of dependent sum type is rendering the counit and Hom isomorphism of the domain cofibration as right adjoint to .
Are there conditions to add to provide a setting where this works?
1 to 6 of 6