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

Products don't work for subshapes #111

Open
TashiWalde opened this issue Sep 28, 2023 · 1 comment
Open

Products don't work for subshapes #111

TashiWalde opened this issue Sep 28, 2023 · 1 comment

Comments

@TashiWalde
Copy link

shape-prod takes two shapes \phi and \chi and returns their product \ (t,s) -> \phi t \and \chi s.
This does not seem to work properly when \phi is introduced as a subshape of some other shape \psi.

Example:

#def bad-product --does not typecheck
  ( I J : CUBE)
  ( ψ : I → TOPE)
  ( ϕ : ψ → TOPE)
  ( χ : J → TOPE)
  ( A : U)
  : U
  := shape-prod I J ϕ χ → A

It works correctly if the definition of shape-prod is expanded to { (t,s) : I × J | ϕ t ∧ χ s }

@TashiWalde
Copy link
Author

As a temporary fix, I have found that most of these issues can be circumvented by eta-expanding the offending shapes; for example := shape-prod I J ( \ t -> \phi t) \chi.

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