Open
Conversation
First, TT is not actually using the fact that is defined in Setω. It could just as well have been defined in, say, Set₀ and all examples would still work. Second, the definition of Map (and subsequent Fold, etc.) were highly suspicious: they were significant size changes between sources and targets. I'm not sure these are still related to the actual categorical concepts. This also manifests itself in the type of induction for LNDT, which is uselessly generalized wrt. to the Set level of `A`. Overall, having a down-to-earth definition for TT (and elsewhere) will make my life easier. (And premature universe level generalization is the root of all evil)
We can go beyond list-like containers now. This slight generalization supports any kind of sum-of-product, first-order datatype. This could be further extended to support Pi-types and Sigma-types, à la Desc described in https://www.irif.fr/~dagand/stuffs/thesis-2011-phd/thesis.pdf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I remove the Set\omega here and there, and then deploy fold (modern version) for GNDT.