Zulip Chat Archive

Stream: general

Topic: pp.analyze not working


Frederick Pu (Aug 04 2025 at 13:34):

I'm trying to get pretty printed type annotations but it's not working

open Lean

set_option pp.analyze true
set_option pp.analyze.checkInstances true
set_option pp.analyze.typeAscriptions true


#check ((1 : Nat) : Int)
-- ↑1 : Int

Aaron Liu (Aug 04 2025 at 13:43):

Try set_option pp.numericTypes true and set_option pp.coercions.types true

Frederick Pu (Aug 04 2025 at 13:45):

thx works now:

open Lean

-- set_option pp.analyze true
-- set_option pp.analyze.checkInstances true
-- set_option pp.analyze.typeAscriptions true
set_option pp.coercions.types true
set_option pp.numericTypes true

#check ((1 : Nat) : Int)
-- (↑(1 : Nat) : Int) : Int

Last updated: Dec 20 2025 at 21:32 UTC