Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kim-em committed Nov 12, 2024
1 parent 6d7410d commit 4092e80
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Aesop/RuleTac/Forward.lean
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ partial def makeForwardHyps (e : Expr) (pat? : Option RulePattern)
(proofTypesAcc : Std.HashSet Expr) :
MetaM (Array (Expr × Nat) × Array FVarId × Std.HashSet Expr) := do
if h : i < immediateMVars.size then
let mvarId := immediateMVars.get ⟨i, h⟩
let mvarId := immediateMVars[i]
let type ← mvarId.getType
(← getLCtx).foldlM (init := (proofsAcc, usedHypsAcc, proofTypesAcc)) λ s@(proofsAcc, usedHypsAcc, proofTypesAcc) ldecl => do
if ldecl.isImplementationDetail then
Expand Down
2 changes: 1 addition & 1 deletion Aesop/Tree/TreeM.lean
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def getRootGoal : TreeM GoalRef := do
let cref ← getRootMVarCluster
let grefs := (← cref.get).goals
if h : grefs.size = 1 then
return grefs.get ⟨0, by simp [h]⟩
return grefs[0]
else
throwError "aesop: internal error: unexpected number of goals in root mvar cluster: {grefs.size}"

Expand Down

0 comments on commit 4092e80

Please sign in to comment.