From 9db546349925730b445b6cf66fff29cc9dfcc52c Mon Sep 17 00:00:00 2001 From: Leni Aniva Date: Sat, 27 Jul 2024 18:20:34 -0700 Subject: [PATCH] feat: Export `GoalState.resume` --- Pantograph/Goal.lean | 1 + 1 file changed, 1 insertion(+) diff --git a/Pantograph/Goal.lean b/Pantograph/Goal.lean index 398386e..b44e8d3 100644 --- a/Pantograph/Goal.lean +++ b/Pantograph/Goal.lean @@ -108,6 +108,7 @@ protected def GoalState.focus (state: GoalState) (goalId: Nat): Option GoalState /-- Brings into scope a list of goals -/ +@[export pantograph_goal_state_resume] protected def GoalState.resume (state: GoalState) (goals: List MVarId): Except String GoalState := if ¬ (goals.all (λ goal => state.mvars.contains goal)) then let invalid_goals := goals.filter (λ goal => ¬ state.mvars.contains goal) |>.map (·.name.toString)