lean4-htt/tests/lean/matchApp.lean
Leonardo de Moura 773dcf3f2e fix: skippingBinders
This method was assuming the arguments of a `match` auxiliary
application were lambdas. This is not true for the automatically
generated equation theorems.
2021-05-26 20:09:12 -07:00

11 lines
316 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

def f (xs ys : List α) : Nat :=
match xs, ys with
| [], [] => 0
| _, [] => 1
| _, _ => 2
#check fun {α : Type} (motive : List α → List α → Type)
(h1 : Unit → motive [] [])
(h2 : (x : List α) → motive x [])
(h3 : (x x_1 : List α) → motive x x_1)
=> f.match_1 motive [] [] h1 h2 h3