We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
says
1 parent d81357c commit 146dab6Copy full SHA for 146dab6
Mathlib/Tactic/Says.lean
@@ -93,7 +93,9 @@ def evalTacticCapturingTryThis (tac : TSyntax `tactic) : TacticM (TSyntax ``tact
93
let tryThis ← match msg.dropPrefix? "Try this:" with
94
| none => throwError m!"Tactic output did not begin with 'Try this:': {msg}"
95
| some S => pure S.toString.removeLeadingSpaces
96
- match parseAsTacticSeq (← getEnv) tryThis.trim with
+ let tryThis := tryThis.trim
97
+ let tryThis := tryThis.dropPrefix? "[apply] " |>.map (·.toString) |>.getD tryThis
98
+ match parseAsTacticSeq (← getEnv) tryThis with
99
| .ok stx => return stx
100
| .error err => throwError m!"Failed to parse tactic output: {tryThis}\n{err}"
101
0 commit comments