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

MetaLCtxM and mvar depth #50

Open
lecopivo opened this issue Nov 29, 2024 · 0 comments
Open

MetaLCtxM and mvar depth #50

lecopivo opened this issue Nov 29, 2024 · 0 comments

Comments

@lecopivo
Copy link
Owner

There seems to be some odd interaction between MetaLCtxM monad and meta variable depth.

lsimp used to panic on

import SciLean.Tactic.CompiledTactics
import SciLean.Tactic.LSimp.Elab
import SciLean.Util.RewriteBy

variable (i : ℕ)

#check (fun x : ℕ => (if i = 0 then 1 else 0)) rewrite_by lsimp

This panic was fixed in 1d70152 by calling withoutModifyingLCtx before withNewMCtxDepth.

I should investigate what is going on and fix MetatLCtxM accordingly.

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

1 participant