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

[checkSub] encountered MSVar (checking non-whnf substitution) #274

Open
ryanakca opened this issue Aug 8, 2024 · 0 comments
Open

[checkSub] encountered MSVar (checking non-whnf substitution) #274

ryanakca opened this issue Aug 8, 2024 · 0 comments
Labels
A | core affecting the typechecker B | bug unexpected or incorrect behaviour

Comments

@ryanakca
Copy link
Contributor

ryanakca commented Aug 8, 2024

## Type Reconstruction begin: /tmp/mwe.bel ##
Internal error. Please report this as a bug.
[checkSub] encountered MSVar (checking non-whnf substitution)

Compilation exited abnormally with code 1 at Thu Aug  8 17:39:37

mwe.bel has the contents:

tm : type.
tp : type.
oft : tm → tp → type.
msf : ({x:tm} {tx:oft x A} oft (M x tx) B) → type.

msf/var : msf (\x.\tx.tx).

schema ctx = some [A:tp] block (x:tm, tx:oft x A);

inductive msfOft : (g : ctx) {D : [g ⊢ oft M A[]]} {l : ctx} {$W:$[g ⊢ l]}ctype =
  | msfOftNil  : msfOft [g ⊢ D] [] $[g ⊢ ]
  | msfOftCons : msfOft [g, blx:block(x:tm, tx:oft x A[]) ⊢ D] [l] $[g, blx:block(x:tm, tx:oft x A[]) ⊢ $W]
                 → [g ⊢ msf (\x.\tx.D[..,<x;tx>]) ]
                 → msfOft [g, blx:block(x:tm, tx:oft x A[]) ⊢ D]
	                  [l, blx:block(x:tm, tx:oft x A[])]
                          $[g, blx:block(x:tm, tx:oft x A[]) ⊢ $W, blx];

let test1 : msfOft [blx:block(x:tm, tx:oft x A[]) ⊢ blx.tx] [] $[blx:block(x:tm, tx:oft x A[]) ⊢ $W] = msfOftNil;
let test2 = msfOftCons test1 [ ⊢ msf/var ];
@MartyO256 MartyO256 added B | bug unexpected or incorrect behaviour A | core affecting the typechecker labels Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A | core affecting the typechecker B | bug unexpected or incorrect behaviour
Projects
None yet
Development

No branches or pull requests

2 participants