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

Feature: Special-case types definable through just polynomial functors #3

Open
alexkeizer opened this issue Feb 16, 2024 · 0 comments

Comments

@alexkeizer
Copy link
Owner

alexkeizer commented Feb 16, 2024

If a (co)inductive type does not involve quotients, then we don't need the full power of QPF's, PFunctors suffice.
Polynomial functors have nicer def-eqs, so it would be nice if we could special case this.

Concretely, consider the type of infinite streams

codata (a : Type) Stream 
  | cons : a -> Stream a -> Stream a

We'd like this to satisfy the obvious def-eq. The current definition, in terms of MvQpf.Cofix does not, but an alternative definition in terms of MvPFunctor.M should!

example (s : Stream a) : Stream.cons (s.head) (s.tail) = s := rfl
@alexkeizer alexkeizer changed the title Special-case types definable through just polynomial functors Feature: Special-case types definable through just polynomial functors May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant