lean4-htt/tests/lean/patvar.lean
2021-01-12 06:41:32 -08:00

17 lines
382 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.

-- set_option trace.Elab true
def myId : List α → List α
| List.nil => List.nil
def constNil : List α → List α
| List.nil => List.nil
| List.cons x y => List.nil
def failing1 : List α → List α
| [] => List.nil
def failing2 : List α → List α
| x => List.nil
| foo.bar => List.nil -- "invalid pattern variable"
def myId2 : List α → List α
| foo.bar => foo.bar