
(/VERSIONCHECK 2) 

(DEFPARAMETER |PatternMatchable;CAT| 'NIL) 

(DEFPARAMETER |PatternMatchable;AL| 'NIL) 

(DEFUN |PatternMatchable| (#0=#:G1816)
  (LET (#1=#:G1817)
    (COND
      ((SETQ #1# (|assoc| #2=(|devaluate| #0#) |PatternMatchable;AL|))
       (CDR #1#))
      (T (SETQ |PatternMatchable;AL|
               (|cons5| (CONS #2# (SETQ #1# (|PatternMatchable;| #0#)))
                        |PatternMatchable;AL|))
         #1#)))) 

(DEFUN |PatternMatchable;| (|t#1|)
  (PROG (#0=#:G1815)
    (RETURN
      (PROG1 (LETT #0#
                   (|sublisV|
                       (PAIR '(|t#1|) (LIST (|devaluate| |t#1|)))
                       (COND
                         (|PatternMatchable;CAT|)
                         ('T
                          (LETT |PatternMatchable;CAT|
                                (|Join| (|SetCategory|)
                                        (|mkCategory| '|domain|
                                         '(((|patternMatch|
                                             ((|PatternMatchResult|
                                               |t#1| $)
                                              $ (|Pattern| |t#1|)
                                              (|PatternMatchResult|
                                               |t#1| $)))
                                            T))
                                         NIL
                                         '((|PatternMatchResult| |t#1|
                                            $)
                                           (|Pattern| |t#1|))
                                         NIL))
                                . #1=(|PatternMatchable|))))) . #1#)
        (SETELT #0# 0 (LIST '|PatternMatchable| (|devaluate| |t#1|))))))) 
