lean4-htt/tests/lean/220.lean.expected.out
Leonardo de Moura 1c1e6d79a7 feat: add equality proof for named patterns
The user can optionally name the equality proof.
The new test demostrates how to name the equality proof.

closes #501
2022-01-18 12:43:01 -08:00

5 lines
99 B
Text

def f : List Nat → List Nat :=
fun x =>
match x with
| a :: xs@h:(b :: bs) => xs
| x => []