lean4-htt/tests/lean/run/struct_instance_in_eqn.lean
Leonardo de Moura 28a34e798a feat(library/compiler/csimp): projection to field
The new test demonstrations this transformation.
2018-10-28 09:38:45 -07:00

7 lines
152 B
Text

structure S :=
(x : nat) (y : bool) (z : nat) (w : nat)
set_option trace.compiler.stage1 true
def g : S → S
| s@{ x := x, ..} := { x := x + 1, ..s}