Skip to content

Commit

Permalink
Use ppExpr
Browse files Browse the repository at this point in the history
  • Loading branch information
nomeata committed Jan 20, 2025
1 parent 39f81f1 commit 8478f38
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Manual/Meta/Monotonicity.lean
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,8 @@ def monotonicityLemmas : BlockRoleExpander
else
pure .continue)

let stx ← Lean.PrettyPrinter.delab call'
let fmt ← Lean.PrettyPrinter.formatTerm stx
let str : String := fmt.pretty
`(Inline.code $(quote str))
let fmt ← ppExpr call'
`(Inline.code $(quote fmt.pretty))

pure #[nameStx, patternStx]

Expand Down

0 comments on commit 8478f38

Please sign in to comment.