Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inductive Types #10

Open
solomon-b opened this issue Mar 6, 2023 · 3 comments
Open

Inductive Types #10

solomon-b opened this issue Mar 6, 2023 · 3 comments
Labels

Comments

@solomon-b
Copy link
Collaborator

No description provided.

@MonoidMusician
Copy link
Collaborator

The main question is do we want to implement mu/nu or Free/Cofree. I think we are leaning towards the latter, especially since mu f = Free f 0 and nu f = Cofree f 1.

@dspivak
Copy link
Contributor

dspivak commented Mar 8, 2023

I also lean toward the latter, and I would be really happy to have this, especially cofree!

For cofree, you could first implement nu f, and just use it as the base of Cofree f. So it's a step, like P=>Q is a step for computing [P,Q]. Similarly, for Free f, you could first implement mu for arbitrary f, and then use mu (f+1), which is the base of Free f.

@solomon-b
Copy link
Collaborator Author

What about if we implemented so-called nominal inductive types a la https://github.com/solomon-b/lambda-calculus-hs/blob/main/main/08-NominalInductiveTypes.hs

Is this too informal for polytt?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants