• 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
            • Formalized-subset
            • Mapping-to-language-definition
            • Input-files
            • Compilation-database
            • Printer
            • Output-files
            • Abstract-syntax-operations
            • Implementation-environments
            • Abstract-syntax
            • Concrete-syntax
              • Grammar
              • Files
              • File-paths
                • Filepath-option
                • Filepath
                • Irr-filepath
                • Filepath-set
                • Filepath-list
                  • Filepath-list-fix
                  • Filepath-list-equiv
                  • Filepath-listp
                    • Filepath-listp-basics
                • Grammar-characters
              • Disambiguation
              • Validation
              • Gcc-builtins
              • Preprocessing
              • Parsing
            • Atc
            • Transformation-tools
            • Language
            • 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
    • Filepath-listp

    Filepath-listp-basics

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

    Definitions and Theorems

    Theorem: filepath-listp-of-cons

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

    Theorem: filepath-listp-of-cdr-when-filepath-listp

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

    Theorem: filepath-listp-when-not-consp

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

    Theorem: filepathp-of-car-when-filepath-listp

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

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

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

    Theorem: filepath-listp-of-list-fix

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

    Theorem: filepath-listp-of-rev

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