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

Bug in mcases #73

Open
valis opened this issue Nov 5, 2024 · 0 comments
Open

Bug in mcases #73

valis opened this issue Nov 5, 2024 · 0 comments
Assignees
Labels

Comments

@valis
Copy link
Collaborator

valis commented Nov 5, 2024

The following code produces IllegalStateException:

\import Equiv
\import Function
\import Logic
\import Logic.Meta
\import Meta

\record Foo {
  | arr : Array (Fin 1) 2
  | allDiff : isInj arr
}

\func testFoo : Equiv {Foo} {Empty}
  => \new QEquiv {
    | f x => \case \elim x \with {
      | (a :: b :: nil, q) => \case \elim a, \elim b, \elim q \with {
        | 0, 0, q => contradiction (q {1} {0} idp)
      }
    }
    | ret => absurd
    | ret_f _ => mcases
    | f_sec => {?}
  }
@valis valis added the bug label Nov 5, 2024
@valis valis self-assigned this Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant