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

Weird error message saying "expected a pattern" #141

Open
emilyriehl opened this issue Oct 23, 2023 · 1 comment
Open

Weird error message saying "expected a pattern" #141

emilyriehl opened this issue Oct 23, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@emilyriehl
Copy link

emilyriehl commented Oct 23, 2023

I just submitted a draft pull request #132 in the sHoTT repository for the purposes of reporting a weird error message. At the end of the the propositions file there are four mathematically identical definitions of the same function, two of which compile, and two of which give errors. I'd love to understand what is going on.

@fizruk
Copy link
Member

fizruk commented Oct 23, 2023

I've replied in the PR, but here's a duplicate:

It appears that two patterns are not allowed by Rzk, for now the suggestion is to introduce the two pairs separately:

- ( (a, p) (b, q) : total-type A P)
+ ( (a, p) : total-type A P)
+ ( (b, q) : total-type A P)

Originally posted by @fizruk in rzk-lang/sHoTT#132 (comment)

@fizruk fizruk self-assigned this Oct 23, 2023
@fizruk fizruk added the enhancement New feature or request label Oct 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants