• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • C
        • Syntax-for-tools
        • Atc
        • Transformation-tools
        • Language
          • Abstract-syntax
          • Integer-ranges
            • Def-integer-range
            • Integer-type-rangep
            • Ushort-integer
            • Ullong-integer
            • Sshort-integer
            • Sllong-integer
            • Ulong-integer
            • Uint-integer
            • Uchar-integer
            • Slong-integer
            • Sint-integer
            • Schar-integer
            • Ushort-max
            • Slong-max
            • Sllong-max
            • Integer-type-min
            • Integer-type-max
            • Uint-max
            • Sint-max
            • Ulong-max
            • Uchar-max
            • Def-integer-range-loop
            • Sshort-min
            • Sshort-max
            • Slong-min
            • Sint-min
            • Ullong-max
            • Sllong-min
            • Schar-min
            • Schar-max
            • Ushort-integer-list
            • Ulong-integer-list
            • Ullong-integer-list
            • Uint-integer-list
            • Uchar-integer-list
            • Sshort-integer-list
            • Slong-integer-list
            • Sllong-integer-list
              • Sllong-integer-list-fix
              • Sllong-integer-list-equiv
              • Sllong-integer-listp
                • Sllong-integer-listp-basics
              • Sint-integer-list
              • Schar-integer-list
              • Uchar-integerp-alt-def
              • Ushort-integerp-alt-def
              • Ulong-integerp-alt-def
              • Ullong-integerp-alt-def
              • Uint-integerp-alt-def
              • Sshort-integerp-alt-def
              • Slong-integerp-alt-def
              • Sllong-integerp-alt-def
              • Sint-integerp-alt-def
              • Schar-integerp-alt-def
            • Implementation-environments
            • Dynamic-semantics
            • Static-semantics
            • Grammar
            • Types
            • Integer-formats-definitions
            • Computation-states
            • Portable-ascii-identifiers
            • Values
            • Integer-operations
            • Object-designators
            • Operations
            • Errors
            • Tag-environments
            • Function-environments
            • Character-sets
            • Flexible-array-member-removal
            • Arithmetic-operations
            • Pointer-operations
            • Real-operations
            • Array-operations
            • Scalar-operations
            • Structure-operations
          • Representation
          • Insertion-sort
          • Pack
        • Proof-checker-array
        • Soft
        • Farray
        • Rp-rewriter
        • Instant-runoff-voting
        • Imp-language
        • Sidekick
        • Ethereum
        • Leftist-trees
        • Java
        • Riscv
        • Taspi
        • Bitcoin
        • Zcash
        • Des
        • X86isa
        • Sha-2
        • Yul
        • Proof-checker-itp13
        • Regex
        • ACL2-programming-language
        • Json
        • Jfkr
        • Equational
        • Cryptography
        • Axe
        • Poseidon
        • Where-do-i-place-my-book
        • Aleo
        • Bigmems
        • Builtins
        • Execloader
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Community
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Sllong-integer-listp

    Sllong-integer-listp-basics

    Basic theorems about sllong-integer-listp, generated by std::deflist.

    Definitions and Theorems

    Theorem: sllong-integer-listp-of-cons

    (defthm sllong-integer-listp-of-cons
      (equal (sllong-integer-listp (cons acl2::a acl2::x))
             (and (sllong-integerp acl2::a)
                  (sllong-integer-listp acl2::x)))
      :rule-classes ((:rewrite)))

    Theorem: sllong-integer-listp-of-cdr-when-sllong-integer-listp

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

    Theorem: sllong-integer-listp-when-not-consp

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

    Theorem: sllong-integerp-of-car-when-sllong-integer-listp

    (defthm sllong-integerp-of-car-when-sllong-integer-listp
      (implies (sllong-integer-listp acl2::x)
               (iff (sllong-integerp (car acl2::x))
                    (consp acl2::x)))
      :rule-classes ((:rewrite)))

    Theorem: true-listp-when-sllong-integer-listp-compound-recognizer

    (defthm true-listp-when-sllong-integer-listp-compound-recognizer
      (implies (sllong-integer-listp acl2::x)
               (true-listp acl2::x))
      :rule-classes :compound-recognizer)

    Theorem: sllong-integer-listp-of-list-fix

    (defthm sllong-integer-listp-of-list-fix
      (implies (sllong-integer-listp acl2::x)
               (sllong-integer-listp (list-fix acl2::x)))
      :rule-classes ((:rewrite)))

    Theorem: sllong-integer-listp-of-sfix

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

    Theorem: sllong-integer-listp-of-insert

    (defthm sllong-integer-listp-of-insert
      (iff (sllong-integer-listp (insert acl2::a acl2::x))
           (and (sllong-integer-listp (sfix acl2::x))
                (sllong-integerp acl2::a)))
      :rule-classes ((:rewrite)))

    Theorem: sllong-integer-listp-of-delete

    (defthm sllong-integer-listp-of-delete
      (implies (sllong-integer-listp acl2::x)
               (sllong-integer-listp (delete acl2::k acl2::x)))
      :rule-classes ((:rewrite)))

    Theorem: sllong-integer-listp-of-mergesort

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

    Theorem: sllong-integer-listp-of-union

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

    Theorem: sllong-integer-listp-of-intersect-1

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

    Theorem: sllong-integer-listp-of-intersect-2

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

    Theorem: sllong-integer-listp-of-difference

    (defthm sllong-integer-listp-of-difference
      (implies (sllong-integer-listp acl2::x)
               (sllong-integer-listp (difference acl2::x acl2::y)))
      :rule-classes ((:rewrite)))

    Theorem: sllong-integer-listp-of-duplicated-members

    (defthm sllong-integer-listp-of-duplicated-members
      (implies (sllong-integer-listp acl2::x)
               (sllong-integer-listp (duplicated-members acl2::x)))
      :rule-classes ((:rewrite)))

    Theorem: sllong-integer-listp-of-rev

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

    Theorem: sllong-integer-listp-of-append

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

    Theorem: sllong-integer-listp-of-rcons

    (defthm sllong-integer-listp-of-rcons
      (iff (sllong-integer-listp (rcons acl2::a acl2::x))
           (and (sllong-integerp acl2::a)
                (sllong-integer-listp (list-fix acl2::x))))
      :rule-classes ((:rewrite)))

    Theorem: sllong-integerp-when-member-equal-of-sllong-integer-listp

    (defthm sllong-integerp-when-member-equal-of-sllong-integer-listp
      (and (implies (and (member-equal acl2::a acl2::x)
                         (sllong-integer-listp acl2::x))
                    (sllong-integerp acl2::a))
           (implies (and (sllong-integer-listp acl2::x)
                         (member-equal acl2::a acl2::x))
                    (sllong-integerp acl2::a)))
      :rule-classes ((:rewrite)))

    Theorem: sllong-integer-listp-when-subsetp-equal

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

    Theorem: sllong-integer-listp-of-set-difference-equal

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

    Theorem: sllong-integer-listp-of-intersection-equal-1

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

    Theorem: sllong-integer-listp-of-intersection-equal-2

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

    Theorem: sllong-integer-listp-of-union-equal

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

    Theorem: sllong-integer-listp-of-take

    (defthm sllong-integer-listp-of-take
      (implies (sllong-integer-listp (double-rewrite acl2::x))
               (iff (sllong-integer-listp (take acl2::n acl2::x))
                    (or (sllong-integerp nil)
                        (<= (nfix acl2::n) (len acl2::x)))))
      :rule-classes ((:rewrite)))

    Theorem: sllong-integer-listp-of-repeat

    (defthm sllong-integer-listp-of-repeat
      (iff (sllong-integer-listp (repeat acl2::n acl2::x))
           (or (sllong-integerp acl2::x)
               (zp acl2::n)))
      :rule-classes ((:rewrite)))

    Theorem: sllong-integerp-of-nth-when-sllong-integer-listp

    (defthm sllong-integerp-of-nth-when-sllong-integer-listp
      (implies (sllong-integer-listp acl2::x)
               (iff (sllong-integerp (nth acl2::n acl2::x))
                    (< (nfix acl2::n) (len acl2::x))))
      :rule-classes ((:rewrite)))

    Theorem: sllong-integer-listp-of-update-nth

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

    Theorem: sllong-integer-listp-of-butlast

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

    Theorem: sllong-integer-listp-of-nthcdr

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

    Theorem: sllong-integer-listp-of-last

    (defthm sllong-integer-listp-of-last
      (implies (sllong-integer-listp (double-rewrite acl2::x))
               (sllong-integer-listp (last acl2::x)))
      :rule-classes ((:rewrite)))

    Theorem: sllong-integer-listp-of-remove

    (defthm sllong-integer-listp-of-remove
      (implies (sllong-integer-listp acl2::x)
               (sllong-integer-listp (remove acl2::a acl2::x)))
      :rule-classes ((:rewrite)))

    Theorem: sllong-integer-listp-of-revappend

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