Skip to content

Commit

Permalink
Merge pull request #60 from Peiyang-Song/main
Browse files Browse the repository at this point in the history
Minor fix for frontend
  • Loading branch information
Peiyang-Song authored Mar 14, 2024
2 parents 164914a + 02a8a24 commit f3c4262
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion LeanCopilot/Frontend.lean
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ def suggestion (tac : String) (msgs : MessageLog := {}) : TacticM Suggestion :=
let postInfo? ← if goals.isEmpty then pure none else
let mut str := "\nRemaining subgoals:"
for g in goals do
let e ← PrettyPrinter.ppExpr (← instantiateMVars (← g.getType))
let goalType ← instantiateMVars (← g.getType)
let e ← g.withContext do (PrettyPrinter.ppExpr goalType)
str := str ++ Format.pretty ("\n⊢ " ++ e)
pure (some str)
let style? := if goals.isEmpty then some .success else none
Expand Down

0 comments on commit f3c4262

Please sign in to comment.