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

Instance MvFunctor Prod' is not universe-polymorphic #51

Closed
Kiiyya opened this issue Dec 2, 2024 · 2 comments · Fixed by #52
Closed

Instance MvFunctor Prod' is not universe-polymorphic #51

Kiiyya opened this issue Dec 2, 2024 · 2 comments · Fixed by #52

Comments

@Kiiyya
Copy link
Contributor

Kiiyya commented Dec 2, 2024

The qpf macro struggles with universe levels, concretely in conjunction with product types.

qpf F₁ (A : Type 0) B := A × B -- works
qpf F₂ (A : Type 1) B := A × B -- fails

Which gives the following error message:

failed to synthesize
  MvFunctor.{max ?u.2094 1, max ?u.2094 1} (TypeFun.ofCurried.{max ?u.2094 1, max ?u.2094 1} Prod.{1, max ?u.2094 1})

This is likely because the instance is not universe-polymorphic. What we need is instance : MvFunctor.{u, u} MvQPF.Prod.Prod'.{u} := sorry

@Kiiyya
Copy link
Contributor Author

Kiiyya commented Dec 2, 2024

I also noticed that the IsPolynomial instance for Prod' is not universe-polymorphic either. What we need is instance : MvQPF.IsPolynomial.{u, u} MvQPF.Prod.Prod'.{u} := sorry

@alexkeizer
Copy link
Owner

We probably ought to get rid of IsPolynomial alltogether, see #53

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

Successfully merging a pull request may close this issue.

2 participants