• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
        • Apt
          • Isodata
          • Simplify-defun
          • Tailrec
          • Schemalg
          • Restrict
          • Expdata
            • Expdata-implementation
              • Expdata-event-generation
              • Expdata-fn
              • Expdata-input-processing
                • Expdata-symbol-surjmap-alistp
                • Expdata-surjmapp
                • Expdata-pos-surjmap-alistp
                • Expdata-process-surj
                • Expdata-process-arg/res-list-surj
                • Expdata-process-inputs
                • Expdata-process-surjmaps
                • Expdata-fresh-defsurj-thm-names
                • Expdata-process-arg/res-list
                • Expdata-process-arg/res-list-surj-list
                • Expdata-process-res
                • Expdata-process-newp-of-new-name
                • Expdata-fresh-defsurj-name-with-*s-suffix
                • Expdata-process-surjmaps-ress
                • Expdata-process-surjmaps-args
                • Expdata-process-arg/res-list-surj-add-args
                • Expdata-process-arg/res-list-surj-add-ress
                • Expdata-process-old
                • Expdata-process-arg/res-list-aux
                • Expdata-surjmap-listp
                  • Expdata-surjmap-listp-basics
                  • Expdata-fresh-defsurj-name-with-*s-suffix-aux
                • Expdata-macro-definition
            • Casesplit
            • Simplify-term
            • Simplify-defun-sk
            • Parteval
            • Solve
            • Wrap-output
            • Propagate-iso
            • Simplify
            • Finite-difference
            • Drop-irrelevant-params
            • Copy-function
            • Lift-iso
            • Rename-params
            • Utilities
            • Simplify-term-programmatic
            • Simplify-defun-sk-programmatic
            • Simplify-defun-programmatic
            • Simplify-defun+
            • Common-options
            • Common-concepts
          • Error-checking
          • Fty-extensions
          • Isar
          • Kestrel-utilities
          • Set
          • C
          • Soft
          • Bv
          • Imp-language
          • Ethereum
          • Event-macros
          • Java
          • Riscv
          • Bitcoin
          • Zcash
          • Yul
          • ACL2-programming-language
          • Prime-fields
          • Json
          • Syntheto
          • File-io-light
          • Cryptography
          • Number-theory
          • Axe
          • Lists-light
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Expdata-surjmap-listp

    Expdata-surjmap-listp-basics

    Basic theorems about expdata-surjmap-listp, generated by std::deflist.

    Definitions and Theorems

    Theorem: expdata-surjmap-listp-of-cons

    (defthm expdata-surjmap-listp-of-cons
      (equal (expdata-surjmap-listp (cons acl2::a acl2::x))
             (and (expdata-surjmapp acl2::a)
                  (expdata-surjmap-listp acl2::x)))
      :rule-classes ((:rewrite)))

    Theorem: expdata-surjmap-listp-of-cdr-when-expdata-surjmap-listp

    (defthm expdata-surjmap-listp-of-cdr-when-expdata-surjmap-listp
      (implies (expdata-surjmap-listp (double-rewrite acl2::x))
               (expdata-surjmap-listp (cdr acl2::x)))
      :rule-classes ((:rewrite)))

    Theorem: expdata-surjmap-listp-when-not-consp

    (defthm expdata-surjmap-listp-when-not-consp
      (implies (not (consp acl2::x))
               (equal (expdata-surjmap-listp acl2::x)
                      (not acl2::x)))
      :rule-classes ((:rewrite)))

    Theorem: expdata-surjmapp-of-car-when-expdata-surjmap-listp

    (defthm expdata-surjmapp-of-car-when-expdata-surjmap-listp
      (implies (expdata-surjmap-listp acl2::x)
               (iff (expdata-surjmapp (car acl2::x))
                    (consp acl2::x)))
      :rule-classes ((:rewrite)))

    Theorem: true-listp-when-expdata-surjmap-listp-compound-recognizer

    (defthm true-listp-when-expdata-surjmap-listp-compound-recognizer
      (implies (expdata-surjmap-listp acl2::x)
               (true-listp acl2::x))
      :rule-classes :compound-recognizer)

    Theorem: expdata-surjmap-listp-of-list-fix

    (defthm expdata-surjmap-listp-of-list-fix
      (implies (expdata-surjmap-listp acl2::x)
               (expdata-surjmap-listp (list-fix acl2::x)))
      :rule-classes ((:rewrite)))

    Theorem: expdata-surjmap-listp-of-sfix

    (defthm expdata-surjmap-listp-of-sfix
      (iff (expdata-surjmap-listp (sfix acl2::x))
           (or (expdata-surjmap-listp acl2::x)
               (not (setp acl2::x))))
      :rule-classes ((:rewrite)))

    Theorem: expdata-surjmap-listp-of-insert

    (defthm expdata-surjmap-listp-of-insert
      (iff (expdata-surjmap-listp (insert acl2::a acl2::x))
           (and (expdata-surjmap-listp (sfix acl2::x))
                (expdata-surjmapp acl2::a)))
      :rule-classes ((:rewrite)))

    Theorem: expdata-surjmap-listp-of-delete

    (defthm expdata-surjmap-listp-of-delete
      (implies (expdata-surjmap-listp acl2::x)
               (expdata-surjmap-listp (delete acl2::k acl2::x)))
      :rule-classes ((:rewrite)))

    Theorem: expdata-surjmap-listp-of-mergesort

    (defthm expdata-surjmap-listp-of-mergesort
      (iff (expdata-surjmap-listp (mergesort acl2::x))
           (expdata-surjmap-listp (list-fix acl2::x)))
      :rule-classes ((:rewrite)))

    Theorem: expdata-surjmap-listp-of-union

    (defthm expdata-surjmap-listp-of-union
      (iff (expdata-surjmap-listp (union acl2::x acl2::y))
           (and (expdata-surjmap-listp (sfix acl2::x))
                (expdata-surjmap-listp (sfix acl2::y))))
      :rule-classes ((:rewrite)))

    Theorem: expdata-surjmap-listp-of-intersect-1

    (defthm expdata-surjmap-listp-of-intersect-1
      (implies (expdata-surjmap-listp acl2::x)
               (expdata-surjmap-listp (intersect acl2::x acl2::y)))
      :rule-classes ((:rewrite)))

    Theorem: expdata-surjmap-listp-of-intersect-2

    (defthm expdata-surjmap-listp-of-intersect-2
      (implies (expdata-surjmap-listp acl2::y)
               (expdata-surjmap-listp (intersect acl2::x acl2::y)))
      :rule-classes ((:rewrite)))

    Theorem: expdata-surjmap-listp-of-difference

    (defthm expdata-surjmap-listp-of-difference
      (implies (expdata-surjmap-listp acl2::x)
               (expdata-surjmap-listp (difference acl2::x acl2::y)))
      :rule-classes ((:rewrite)))

    Theorem: expdata-surjmap-listp-of-duplicated-members

    (defthm expdata-surjmap-listp-of-duplicated-members
      (implies (expdata-surjmap-listp acl2::x)
               (expdata-surjmap-listp (duplicated-members acl2::x)))
      :rule-classes ((:rewrite)))

    Theorem: expdata-surjmap-listp-of-rev

    (defthm expdata-surjmap-listp-of-rev
      (equal (expdata-surjmap-listp (rev acl2::x))
             (expdata-surjmap-listp (list-fix acl2::x)))
      :rule-classes ((:rewrite)))

    Theorem: expdata-surjmap-listp-of-append

    (defthm expdata-surjmap-listp-of-append
      (equal (expdata-surjmap-listp (append acl2::a acl2::b))
             (and (expdata-surjmap-listp (list-fix acl2::a))
                  (expdata-surjmap-listp acl2::b)))
      :rule-classes ((:rewrite)))

    Theorem: expdata-surjmap-listp-of-rcons

    (defthm expdata-surjmap-listp-of-rcons
      (iff (expdata-surjmap-listp (rcons acl2::a acl2::x))
           (and (expdata-surjmapp acl2::a)
                (expdata-surjmap-listp (list-fix acl2::x))))
      :rule-classes ((:rewrite)))

    Theorem: expdata-surjmapp-when-member-equal-of-expdata-surjmap-listp

    (defthm expdata-surjmapp-when-member-equal-of-expdata-surjmap-listp
      (and (implies (and (member-equal acl2::a acl2::x)
                         (expdata-surjmap-listp acl2::x))
                    (expdata-surjmapp acl2::a))
           (implies (and (expdata-surjmap-listp acl2::x)
                         (member-equal acl2::a acl2::x))
                    (expdata-surjmapp acl2::a)))
      :rule-classes ((:rewrite)))

    Theorem: expdata-surjmap-listp-when-subsetp-equal

    (defthm expdata-surjmap-listp-when-subsetp-equal
      (and (implies (and (subsetp-equal acl2::x acl2::y)
                         (expdata-surjmap-listp acl2::y))
                    (equal (expdata-surjmap-listp acl2::x)
                           (true-listp acl2::x)))
           (implies (and (expdata-surjmap-listp acl2::y)
                         (subsetp-equal acl2::x acl2::y))
                    (equal (expdata-surjmap-listp acl2::x)
                           (true-listp acl2::x))))
      :rule-classes ((:rewrite)))

    Theorem: expdata-surjmap-listp-of-set-difference-equal

    (defthm expdata-surjmap-listp-of-set-difference-equal
     (implies
         (expdata-surjmap-listp acl2::x)
         (expdata-surjmap-listp (set-difference-equal acl2::x acl2::y)))
     :rule-classes ((:rewrite)))

    Theorem: expdata-surjmap-listp-of-intersection-equal-1

    (defthm expdata-surjmap-listp-of-intersection-equal-1
      (implies
           (expdata-surjmap-listp (double-rewrite acl2::x))
           (expdata-surjmap-listp (intersection-equal acl2::x acl2::y)))
      :rule-classes ((:rewrite)))

    Theorem: expdata-surjmap-listp-of-intersection-equal-2

    (defthm expdata-surjmap-listp-of-intersection-equal-2
      (implies
           (expdata-surjmap-listp (double-rewrite acl2::y))
           (expdata-surjmap-listp (intersection-equal acl2::x acl2::y)))
      :rule-classes ((:rewrite)))

    Theorem: expdata-surjmap-listp-of-union-equal

    (defthm expdata-surjmap-listp-of-union-equal
      (equal (expdata-surjmap-listp (union-equal acl2::x acl2::y))
             (and (expdata-surjmap-listp (list-fix acl2::x))
                  (expdata-surjmap-listp (double-rewrite acl2::y))))
      :rule-classes ((:rewrite)))

    Theorem: expdata-surjmap-listp-of-take

    (defthm expdata-surjmap-listp-of-take
      (implies (expdata-surjmap-listp (double-rewrite acl2::x))
               (iff (expdata-surjmap-listp (take acl2::n acl2::x))
                    (or (expdata-surjmapp nil)
                        (<= (nfix acl2::n) (len acl2::x)))))
      :rule-classes ((:rewrite)))

    Theorem: expdata-surjmap-listp-of-repeat

    (defthm expdata-surjmap-listp-of-repeat
      (iff (expdata-surjmap-listp (repeat acl2::n acl2::x))
           (or (expdata-surjmapp acl2::x)
               (zp acl2::n)))
      :rule-classes ((:rewrite)))

    Theorem: expdata-surjmapp-of-nth-when-expdata-surjmap-listp

    (defthm expdata-surjmapp-of-nth-when-expdata-surjmap-listp
      (implies (expdata-surjmap-listp acl2::x)
               (iff (expdata-surjmapp (nth acl2::n acl2::x))
                    (< (nfix acl2::n) (len acl2::x))))
      :rule-classes ((:rewrite)))

    Theorem: expdata-surjmap-listp-of-update-nth

    (defthm expdata-surjmap-listp-of-update-nth
     (implies
       (expdata-surjmap-listp (double-rewrite acl2::x))
       (iff (expdata-surjmap-listp (update-nth acl2::n acl2::y acl2::x))
            (and (expdata-surjmapp acl2::y)
                 (or (<= (nfix acl2::n) (len acl2::x))
                     (expdata-surjmapp nil)))))
     :rule-classes ((:rewrite)))

    Theorem: expdata-surjmap-listp-of-butlast

    (defthm expdata-surjmap-listp-of-butlast
      (implies (expdata-surjmap-listp (double-rewrite acl2::x))
               (expdata-surjmap-listp (butlast acl2::x acl2::n)))
      :rule-classes ((:rewrite)))

    Theorem: expdata-surjmap-listp-of-nthcdr

    (defthm expdata-surjmap-listp-of-nthcdr
      (implies (expdata-surjmap-listp (double-rewrite acl2::x))
               (expdata-surjmap-listp (nthcdr acl2::n acl2::x)))
      :rule-classes ((:rewrite)))

    Theorem: expdata-surjmap-listp-of-last

    (defthm expdata-surjmap-listp-of-last
      (implies (expdata-surjmap-listp (double-rewrite acl2::x))
               (expdata-surjmap-listp (last acl2::x)))
      :rule-classes ((:rewrite)))

    Theorem: expdata-surjmap-listp-of-remove

    (defthm expdata-surjmap-listp-of-remove
      (implies (expdata-surjmap-listp acl2::x)
               (expdata-surjmap-listp (remove acl2::a acl2::x)))
      :rule-classes ((:rewrite)))

    Theorem: expdata-surjmap-listp-of-revappend

    (defthm expdata-surjmap-listp-of-revappend
      (equal (expdata-surjmap-listp (revappend acl2::x acl2::y))
             (and (expdata-surjmap-listp (list-fix acl2::x))
                  (expdata-surjmap-listp acl2::y)))
      :rule-classes ((:rewrite)))