• Top
    • Documentation
    • Books
    • Boolean-reasoning
      • Ipasir
      • Aignet
        • Base-api
        • Aignet-construction
        • Representation
        • Aignet-copy-init
        • Aignet-simplify-with-tracking
        • Aignet-simplify-marked-with-tracking
        • Aignet-cnf
        • Aignet-simplify-marked
        • Aignet-complete-copy
        • Aignet-transforms
          • Aignet-output-ranges
            • Aignet-output-range-map
              • Aignet-output-range-map-p
                • Aignet-output-range-map-fix
                • Aignet-output-range-map-equiv
            • Aignet-comb-transforms
            • Aignet-m-assumption-n-output-transforms
            • Aignet-n-output-comb-transforms
          • Aignet-eval
          • Semantics
          • Aignet-read-aiger
          • Aignet-write-aiger
          • Aignet-abc-interface
          • Utilities
        • Aig
        • Satlink
        • Truth
        • Ubdds
        • Bdd
        • Faig
        • Bed
        • 4v
      • Projects
      • Debugging
      • Community
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Aignet-output-range-map

    Aignet-output-range-map-p

    Recognizer for aignet-output-range-map.

    Signature
    (aignet-output-range-map-p x) → *

    Definitions and Theorems

    Function: aignet-output-range-map-p

    (defun aignet-output-range-map-p (x)
      (declare (xargs :guard t))
      (let ((__function__ 'aignet-output-range-map-p))
        (declare (ignorable __function__))
        (if (atom x)
            (eq x nil)
          (and (consp (car x))
               (symbolp (caar x))
               (natp (cdar x))
               (aignet-output-range-map-p (cdr x))))))

    Theorem: aignet-output-range-map-p-of-butlast

    (defthm aignet-output-range-map-p-of-butlast
      (implies (aignet-output-range-map-p (double-rewrite x))
               (aignet-output-range-map-p (butlast x acl2::n)))
      :rule-classes ((:rewrite)))

    Theorem: aignet-output-range-map-p-of-rev

    (defthm aignet-output-range-map-p-of-rev
      (equal (aignet-output-range-map-p (acl2::rev x))
             (aignet-output-range-map-p (acl2::list-fix x)))
      :rule-classes ((:rewrite)))

    Theorem: aignet-output-range-map-p-of-append

    (defthm aignet-output-range-map-p-of-append
      (equal (aignet-output-range-map-p (append acl2::a acl2::b))
             (and (aignet-output-range-map-p (acl2::list-fix acl2::a))
                  (aignet-output-range-map-p acl2::b)))
      :rule-classes ((:rewrite)))

    Theorem: aignet-output-range-map-p-of-list-fix

    (defthm aignet-output-range-map-p-of-list-fix
      (implies (aignet-output-range-map-p x)
               (aignet-output-range-map-p (acl2::list-fix x)))
      :rule-classes ((:rewrite)))

    Theorem: true-listp-when-aignet-output-range-map-p-compound-recognizer

    (defthm
          true-listp-when-aignet-output-range-map-p-compound-recognizer
      (implies (aignet-output-range-map-p x)
               (true-listp x))
      :rule-classes :compound-recognizer)

    Theorem: aignet-output-range-map-p-when-not-consp

    (defthm aignet-output-range-map-p-when-not-consp
      (implies (not (consp x))
               (equal (aignet-output-range-map-p x)
                      (not x)))
      :rule-classes ((:rewrite)))

    Theorem: aignet-output-range-map-p-of-cdr-when-aignet-output-range-map-p

    (defthm
        aignet-output-range-map-p-of-cdr-when-aignet-output-range-map-p
      (implies (aignet-output-range-map-p (double-rewrite x))
               (aignet-output-range-map-p (cdr x)))
      :rule-classes ((:rewrite)))

    Theorem: aignet-output-range-map-p-of-cons

    (defthm aignet-output-range-map-p-of-cons
      (equal (aignet-output-range-map-p (cons acl2::a x))
             (and (and (consp acl2::a)
                       (symbolp (car acl2::a))
                       (natp (cdr acl2::a)))
                  (aignet-output-range-map-p x)))
      :rule-classes ((:rewrite)))

    Theorem: aignet-output-range-map-p-of-remove-assoc

    (defthm aignet-output-range-map-p-of-remove-assoc
     (implies
          (aignet-output-range-map-p x)
          (aignet-output-range-map-p (remove-assoc-equal acl2::name x)))
     :rule-classes ((:rewrite)))

    Theorem: aignet-output-range-map-p-of-put-assoc

    (defthm aignet-output-range-map-p-of-put-assoc
      (implies (and (aignet-output-range-map-p x))
               (iff (aignet-output-range-map-p
                         (put-assoc-equal acl2::name acl2::val x))
                    (and (symbolp acl2::name)
                         (natp acl2::val))))
      :rule-classes ((:rewrite)))

    Theorem: aignet-output-range-map-p-of-fast-alist-clean

    (defthm aignet-output-range-map-p-of-fast-alist-clean
      (implies (aignet-output-range-map-p x)
               (aignet-output-range-map-p (fast-alist-clean x)))
      :rule-classes ((:rewrite)))

    Theorem: aignet-output-range-map-p-of-hons-shrink-alist

    (defthm aignet-output-range-map-p-of-hons-shrink-alist
     (implies (and (aignet-output-range-map-p x)
                   (aignet-output-range-map-p acl2::y))
              (aignet-output-range-map-p (hons-shrink-alist x acl2::y)))
     :rule-classes ((:rewrite)))

    Theorem: aignet-output-range-map-p-of-hons-acons

    (defthm aignet-output-range-map-p-of-hons-acons
      (equal (aignet-output-range-map-p (hons-acons acl2::a acl2::n x))
             (and (symbolp acl2::a)
                  (natp acl2::n)
                  (aignet-output-range-map-p x)))
      :rule-classes ((:rewrite)))

    Theorem: natp-of-cdr-of-hons-assoc-equal-when-aignet-output-range-map-p

    (defthm
         natp-of-cdr-of-hons-assoc-equal-when-aignet-output-range-map-p
      (implies (aignet-output-range-map-p x)
               (iff (natp (cdr (hons-assoc-equal acl2::k x)))
                    (or (hons-assoc-equal acl2::k x)
                        (natp nil))))
      :rule-classes ((:rewrite)))

    Theorem: alistp-when-aignet-output-range-map-p-rewrite

    (defthm alistp-when-aignet-output-range-map-p-rewrite
      (implies (aignet-output-range-map-p x)
               (alistp x))
      :rule-classes ((:rewrite)))

    Theorem: alistp-when-aignet-output-range-map-p

    (defthm alistp-when-aignet-output-range-map-p
      (implies (aignet-output-range-map-p x)
               (alistp x))
      :rule-classes :tau-system)

    Theorem: natp-of-cdar-when-aignet-output-range-map-p

    (defthm natp-of-cdar-when-aignet-output-range-map-p
      (implies (aignet-output-range-map-p x)
               (iff (natp (cdar x))
                    (or (consp x) (natp nil))))
      :rule-classes ((:rewrite)))

    Theorem: symbolp-of-caar-when-aignet-output-range-map-p

    (defthm symbolp-of-caar-when-aignet-output-range-map-p
      (implies (aignet-output-range-map-p x)
               (iff (symbolp (caar x))
                    (or (consp x) (symbolp nil))))
      :rule-classes ((:rewrite)))