lean4-htt/tests/lean/structInstSourcesLeftToRight.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

12 lines
372 B
Text

def foo : A → B → B :=
fun a b => { x := a.x, y := b.y }
def boo : A → B → B :=
fun a b => { x := b.x, y := b.y }
def baz : A → B → C :=
fun a b => { toB := { x := a.x, y := b.y } }
def biz : A → B → C :=
fun a b => { toB := b }
def faz : A → C → C :=
fun a c => { toB := { x := a.x, y := c.y } }
def fiz : A → C → C :=
fun a c => { toB := c.toB }