Completeness of pattern matching