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

Cedille Core Elaboration Bug with Phi #151

Open
amarmaduke opened this issue Mar 30, 2020 · 1 comment
Open

Cedille Core Elaboration Bug with Phi #151

amarmaduke opened this issue Mar 30, 2020 · 1 comment
Assignees

Comments

@amarmaduke
Copy link
Member

The elaborated output of the following code:

data Unit : ★ =
  | unit : Unit.

bug : Unit ➔ Unit
= λ u. μ rec. u {
  | unit ➔ u
  }.

Will elaborate Phi casts without required parenthesis.
Here is a (relatively) small snippet of the problem:

(φ (β <y> {|λ x . x|}) - IndF-Unit ·Type-rec1 y {| y |})
            ·(λ y1 : F-Unit ·Type-rec1 .
                ∀ y' : Unit .
                 ∀ e : { Unit-inFix y1 ≃ y' } .
                  (λ _ : Unit . Unit)
                    (φ e -
                       Unit-inFix
                         ·F-Unit
                         -fmap-Unit
                         (Unit-cast
                            ·(F-Unit ·Type-rec1)
                            ·(F-Unit ·Unit)
                            -(fmap-Unit ·Type-rec1 ·Unit -to)
                            y1)
                       {| y' |}))

If you check this with Cedille Core itself then it works, but if you attempt to check it with Cedille Proper it will complain about the first line, specifically ·Type-rec1.

@amarmaduke amarmaduke self-assigned this Mar 30, 2020
@cwjnkins
Copy link
Contributor

cwjnkins commented Mar 30, 2020

Looks like the change to require the second subterm of phi to be a Pterm goes back to 3e9579f

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

2 participants