lean4-htt/tests/lean/syntheticHolesAsPatterns.lean
2022-02-15 15:54:03 -08:00

13 lines
335 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.

inductive Fam2 : Type → Type → Type 1 where
| any : Fam2 α α
| nat : Nat → Fam2 Nat Nat
example (a : α) (x : Fam2 α β) : β :=
match α, β, a, x with
| ?α, ?β, ?a, Fam2.any => _
| ?α, ?β, ?a, Fam2.nat n => _
example (a : α) (x : Fam2 α β) : β :=
match x with
| Fam2.any => _
| Fam2.nat n => _