File: .lake/packages/aesop/Aesop/Script/StructureDynamic.lean

full_name: _private.«.lake».packages.aesop.Aesop.Script.StructureDynamic.0.Aesop.Script.goalsToMessageData
code: private def goalsToMessageData (state : Meta.SavedState) (goals : Array MVarId) :
    MetaM MessageData 
goal: Lean.MetaM Lean.MessageData

full_name: Aesop.Script.DynStructureM.Context
code: structure Context where
  /-- The tactic invocation steps corresponding to the original unstructured
  script, but with `MVarId` keys adjusted to fit the current `MetaM` state. This
  state evolves during dynamic structuring and we continually update the `steps`
  so that this map's keys refer to metavariables which exist in the current
  `MetaM` state. -/
  steps : PHashMap MVarId (Nat × Step)
  deriving Inhabited
goal: Type

full_name: Aesop.Script.DynStructureM.instInhabitedContext
code: structure Context where
  /-- The tactic invocation steps corresponding to the original unstructured
  script, but with `MVarId` keys adjusted to fit the current `MetaM` state. This
  state evolves during dynamic structuring and we continually update the `steps`
  so that this map's keys refer to metavariables which exist in the current
  `MetaM` state. -/
  steps : PHashMap MVarId (Nat × Step)
  deriving Inhabited
goal: Inhabited Aesop.Script.DynStructureM.Context

full_name: Aesop.Script.DynStructureM.Context.steps
code: structure Context where
  /-- The tactic invocation steps corresponding to the original unstructured
  script, but with `MVarId` keys adjusted to fit the current `MetaM` state. This
  state evolves during dynamic structuring and we continually update the `steps`
  so that this map's keys refer to metavariables which exist in the current
  `MetaM` state. -/
  steps : PHashMap MVarId (Nat × Step)
  deriving Inhabited
goal: Lean.PHashMap Lean.MVarId (Nat × Aesop.Script.Step)

full_name: Aesop.Script.DynStructureM.State.perfect
code: structure State where
  perfect : Bool := true
goal: Bool

full_name: Aesop.Script.DynStructureM.State
code: structure State where
  perfect : Bool := true
goal: Type

full_name: Aesop.Script.DynStructureM.Context.updateMVarIds
code: /--
Given a bijective map `map` from new `MVarId`s to old `MVarId`s, update the
`steps` of the context `c` such that each entry whose key is an old `MVarId` `m`
is replaced with an entry whose key is the corresponding new `MVarId`
`map⁻¹ m`.
-/
def Context.updateMVarIds (c : Context) (map : HashMap MVarId MVarId) :
    Context 
goal: Aesop.Script.DynStructureM.Context

full_name: Aesop.Script.DynStructureM
code: abbrev DynStructureM 
goal: Type

full_name: Aesop.Script.DynStructureM.run
code: def DynStructureM.run (x : DynStructureM α) (script : UScript) :
    MetaM (α × Bool) 
goal: Lean.MetaM (α × Bool)

full_name: Aesop.Script.withUpdatedMVarIds
code: def withUpdatedMVarIds
    (oldPostState newPostState : Meta.SavedState)
    (oldPostGoals newPostGoals : Array MVarId) (onFailure : DynStructureM α)
    (onSuccess : DynStructureM α) : DynStructureM α 
goal: Aesop.Script.DynStructureM α

full_name: Aesop.Script.DynStructureResult
code: structure DynStructureResult where
  script : List Step
  postState : Meta.SavedState
goal: Type

full_name: Aesop.Script.DynStructureResult.postState
code: structure DynStructureResult where
  script : List Step
  postState : Meta.SavedState
goal: Lean.Meta.SavedState

full_name: Aesop.Script.DynStructureResult.script
code: structure DynStructureResult where
  script : List Step
  postState : Meta.SavedState
goal: List Aesop.Script.Step

full_name: Aesop.Script.structureDynamicCore.goStructured
code: partial def structureDynamicCore (preState : Meta.SavedState) (preGoal : MVarId)
    (uscript : UScript) : MetaM (Option (UScript × Bool)) 
goal: Aesop.Script.DynStructureM (Option Aesop.Script.DynStructureResult)

full_name: Aesop.Script.structureDynamicCore
code: partial def structureDynamicCore (preState : Meta.SavedState) (preGoal : MVarId)
    (uscript : UScript) : MetaM (Option (UScript × Bool)) 
goal: Lean.MetaM (Option (Aesop.Script.UScript × Bool))

full_name: Aesop.Script.structureDynamicCore.goUnstructured
code: partial def structureDynamicCore (preState : Meta.SavedState) (preGoal : MVarId)
    (uscript : UScript) : MetaM (Option (UScript × Bool)) 
goal: Aesop.Script.DynStructureM (Option Aesop.Script.DynStructureResult)

full_name: Aesop.Script.structureDynamicCore.go
code: partial def structureDynamicCore (preState : Meta.SavedState) (preGoal : MVarId)
    (uscript : UScript) : MetaM (Option (UScript × Bool)) 
goal: Aesop.Script.DynStructureM (Option Aesop.Script.DynStructureResult)

full_name: Aesop.Script.structureDynamicCore.applyStepAndSolveRemaining
code: partial def structureDynamicCore (preState : Meta.SavedState) (preGoal : MVarId)
    (uscript : UScript) : MetaM (Option (UScript × Bool)) 
goal: Lean.MVarId → Nat → Aesop.Script.Step → Aesop.Script.DynStructureM (Option Aesop.Script.DynStructureResult)

full_name: Aesop.Script.UScript.toSScriptDynamic
code: def UScript.toSScriptDynamic (preState : Meta.SavedState) (preGoal : MVarId)
    (uscript : UScript) : MetaM (Option (SScript × Bool)) 
goal: Lean.MetaM (Option (Aesop.Script.SScript × Bool))