• 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
        • Error-checking
        • Fty-extensions
        • Isar
        • Kestrel-utilities
        • Set
        • C
          • Syntax-for-tools
          • Atc
          • Transformation-tools
          • Language
            • Abstract-syntax
              • Tyspecseq
              • Expr
              • Binop
              • Fileset
              • Obj-declor
              • Abstract-syntax-operations
              • Iconst
              • Obj-adeclor
              • Const
              • Fundef
              • Unop
              • File
              • Tag-declon
              • Fun-declor
              • Obj-declon
              • Iconst-length
              • Label
              • Struct-declon
              • Initer
              • Ext-declon
              • Fun-adeclor
              • Expr-option
              • Iconst-base
              • Initer-option
              • Iconst-option
              • Tyspecseq-option
              • Stmt-option
              • Scspecseq
              • Param-declon
              • Obj-declon-option
              • File-option
              • Tyname
              • Transunit
              • Fun-declon
              • Transunit-result
              • Param-declon-list
              • Struct-declon-list
              • Expr-list
                • Expr-listp
                  • Expr-listp-basics
                  • Expr-list-equiv
                  • Expr-list-fix
                • Tyspecseq-list
                • Identifiers
                • Ext-declon-list
                • Unop-list
                • Tyname-list
                • Fundef-list
                • Fun-declon-list
                • Binop-list
                • Stmt-fixtypes
                • Expr-fixtypes
                  • Expr
                  • Expr-list
                    • Expr-listp
                      • Expr-listp-basics
                      • Expr-list-equiv
                      • Expr-list-fix
                • Integer-ranges
                • 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
            • 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
      • Expr-listp

      Expr-listp-basics

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

      Definitions and Theorems

      Theorem: expr-listp-of-cons

      (defthm expr-listp-of-cons
        (equal (expr-listp (cons acl2::a acl2::x))
               (and (exprp acl2::a)
                    (expr-listp acl2::x)))
        :rule-classes ((:rewrite)))

      Theorem: expr-listp-of-cdr-when-expr-listp

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

      Theorem: expr-listp-when-not-consp

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

      Theorem: exprp-of-car-when-expr-listp

      (defthm exprp-of-car-when-expr-listp
        (implies (expr-listp acl2::x)
                 (iff (exprp (car acl2::x))
                      (consp acl2::x)))
        :rule-classes ((:rewrite)))

      Theorem: true-listp-when-expr-listp-compound-recognizer

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

      Theorem: expr-listp-of-list-fix

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

      Theorem: expr-listp-of-rev

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

      Theorem: expr-listp-of-append

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