lean4-htt/tests/lean/run/783.lean
Kyle Miller c066b5cf1c
feat: pretty printing structures, omit default values (#7589)
This PR changes the structure instance notation pretty printer so that
fields are omitted if their value is definitionally equal to the default
value for the field (up to reducible transparancy). Setting
`pp.structureInstances.defaults` to true forces such fields to be pretty
printed anyway.

Closes #1100
2025-03-20 15:32:13 +00:00

9 lines
210 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

structure MyStruct where
{α : Type u}
{β : Type v}
a : α
b : β
/-- info: { α := Nat, β := Bool, a := 10, b := true } : MyStruct -/
#guard_msgs in
#check { a := 10, b := true : MyStruct }