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
2 lines
213 B
Text
2 lines
213 B
Text
constructor Ring.mk.{u} : {R : Type u} → [toZero : Zero R] → (gsmul : Int → R → R) → (∀ (a : R), gsmul 0 a = 0) → Ring R
|
|
{ zero := 0, gsmul := fun x n => x.toNat * n, gsmul_zero' := ⋯ } : Ring Nat
|