• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • 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
        • Soft
        • C
        • Bv
        • Imp-language
        • Event-macros
        • Java
        • Bitcoin
        • Ethereum
        • Yul
        • Zcash
        • ACL2-programming-language
          • Primitive-functions
          • Translated-terms
          • Values
          • Evaluation
          • Program-equivalence
          • Functions
          • Packages
          • Programs
            • Program
              • Program-fix
              • Program-equiv
              • Make-program
              • Programp
                • Program->packages
                • Program->functions
                • Change-program
              • Lift-program
            • Interpreter
            • Evaluation-states
          • Prime-fields
          • Json
          • Syntheto
          • File-io-light
          • Cryptography
          • Number-theory
          • Lists-light
          • Axe
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Program

    Programp

    Recognizer for program structures.

    Signature
    (programp x) → *

    Definitions and Theorems

    Function: programp

    (defun programp (x)
      (declare (xargs :guard t))
      (let ((__function__ 'programp))
        (declare (ignorable __function__))
        (and (true-listp x)
             (eql (len x) 2)
             (b* ((packages (std::da-nth 0 x))
                  (functions (std::da-nth 1 x)))
               (and (package-listp packages)
                    (function-setp functions))))))

    Theorem: consp-when-programp

    (defthm consp-when-programp
      (implies (programp x) (consp x))
      :rule-classes :compound-recognizer)