Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Lean/Mathlib/Mathlib/Lean/Elab/Tactic/     Datei vom 15.10.2026 mit Größe 1002 B image not shown  

Quelle  Meta.lean   Sprache: Lean

 

/-
Copyright (c) 2025 Lean FRO, LLC. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kim Morrison
-/

module

public meta import Lean.Elab.SyntheticMVars

-- Import this linter explicitly to ensure that
-- this file has a valid copyright header and module docstring.
import Mathlib.Tactic.Linter.Header  -- shake: keep

set_option doc.verso true
set_option doc.verso.suggestions false

/-!
# Additions to `Lean.Elab.Tactic.Meta`
-/


public meta section

namespace Lean.Elab
open Term

/-- Apply the given tactic code to `mvarId` in `MetaM`.

This is a variant of `Lean.Elab.runTactic` that forgets the final `Term.State`.
-/

def runTactic' (mvarId : MVarId) (tacticCode : Syntax) (ctx : Context := {}) (s : State := {}) :
    MetaM (List MVarId) := do
  instantiateMVarDeclMVars mvarId
  let go : TermElabM (List MVarId) :=
    withSynthesize do Tactic.run mvarId (Tactic.evalTactic tacticCode *> Tactic.pruneSolvedGoals)
  go.run' ctx s

end Lean.Elab

Messung
CHZG
9310010097

¤ Dauer der Verarbeitung: 0.0 Sekunden  (vorverarbeitet am  2026-11-24) ¤

*© Formatika GbR, Deutschland