lean4-htt/tests/lean/toFieldNameIssue.lean.expected.out
Kyle Miller a706c3b89a
feat: delaboration collapses parent projections (#3326)
When projection functions are delaborated, intermediate parent
projections are no longer printed. For example, rather than pretty
printing as `o.toB.toA.x` with these `toB` and `toA` parent projections,
it pretty prints as `o.x`.

This feature is being upstreamed from mathlib.
2024-02-14 23:44:48 +00:00

4 lines
180 B
Text

{ toA_1 := { toA := { x := 0 }, y := 1 }, z := 2 } : B
{ toC := { x := 0, y := 1 }, z := 2 } : D
@[reducible] def D.toC_1 : D → Boo.C :=
fun self => { x := self.x, z := self.z }