
(/VERSIONCHECK 2) 

(DEFPARAMETER |PatternMatchable;CAT| 'NIL) 

(DEFPARAMETER |PatternMatchable;AL| 'NIL) 

(DEFUN |PatternMatchable| (#1=#:G4087)
  (LET (#2=#:G4088)
    (COND
     ((SETQ #2# (|assoc| #3=(|devaluate| #1#) |PatternMatchable;AL|))
      (CDR #2#))
     (T
      (SETQ |PatternMatchable;AL|
              (|cons5| (CONS #3# (SETQ #2# (|PatternMatchable;| #1#)))
                       |PatternMatchable;AL|))
      #2#)))) 

(DEFUN |PatternMatchable;| (|t#1|)
  (PROG (#1=#:G4086)
    (RETURN
     (PROG1
         (LETT #1#
               (|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))
                                       . #2=(|PatternMatchable|)))))
               . #2#)
       (SETELT #1# 0 (LIST '|PatternMatchable| (|devaluate| |t#1|))))))) 
