Skip to content

MetaLCtxM and mvar depth #50

@lecopivo

Description

@lecopivo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions