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

de Bruijn index out of scope #3882

Closed
ecavallo opened this issue Jul 3, 2019 · 4 comments
Closed

de Bruijn index out of scope #3882

ecavallo opened this issue Jul 3, 2019 · 4 comments
Assignees
Labels
de-Bruijn Internal problems with variable scoping ("de Bruijn indices") rewriting Rewrite rules, rewrite rule matching type: bug Issues and pull requests about actual bugs
Milestone

Comments

@ecavallo
Copy link
Contributor

ecavallo commented Jul 3, 2019

I am getting the error

de Bruijn index out of scope: 17 in context [s, v, u, b, a, s, x₀, φ, p, r, n₁, n₀, ψ, φ, Γ]
CallStack (from HasCallStack):
  error, called at src/full/Agda/TypeChecking/Monad/Base.hs:3417:10 in Agda-2.6.1-9OYRc5L5C8uKq1UrNAib4P:Agda.TypeChecking.Monad.Base

with this code: https://gist.github.com/ecavallo/9f8a54554093aed0a2360194d0b89ad4. It seems related to rewrite rules, but I have not isolated very successfully.

agda --version
Agda version 2.6.1-4e989c1
@andreasabel
Copy link
Member

Thanks for reporting. Could you shrink this down a bit? E.g. by uses of

postulate ANY : forall {a} {A : Set a} -> A

and step-wise eliminating code that does not contribute to the error?

@andreasabel andreasabel added de-Bruijn Internal problems with variable scoping ("de Bruijn indices") type: bug Issues and pull requests about actual bugs labels Jul 4, 2019
@ecavallo
Copy link
Contributor Author

ecavallo commented Jul 4, 2019

I've done a bit of that already, but I'll go over again and see if I can improve.

@ecavallo
Copy link
Contributor Author

ecavallo commented Jul 4, 2019

@andreasabel andreasabel added the rewriting Rewrite rules, rewrite rule matching label Jul 6, 2019
@jespercockx jespercockx added this to the 2.6.1 milestone Nov 18, 2019
@jespercockx jespercockx self-assigned this Dec 1, 2019
@asr asr changed the title de Bruijn index out of scope de Bruijn index out of scope Dec 14, 2019
@asr
Copy link
Member

asr commented Dec 14, 2019

Removed whitespace issue in the title (detected when running the closed-issues-for-milestone).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
de-Bruijn Internal problems with variable scoping ("de Bruijn indices") rewriting Rewrite rules, rewrite rule matching type: bug Issues and pull requests about actual bugs
Projects
None yet
Development

No branches or pull requests

4 participants