• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Pfcs
      • Wp-gen
      • Dimacs-reader
      • Legacy-defrstobj
      • Proof-checker-array
      • Soft
      • C
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Leftist-trees
      • Java
      • Taspi
      • Riscv
      • Bitcoin
      • Des
      • Ethereum
      • X86isa
      • Sha-2
      • Yul
      • Zcash
      • Proof-checker-itp13
      • Regex
      • 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
        • Json
        • Jfkr
        • Equational
        • Cryptography
        • Poseidon
        • Where-do-i-place-my-book
        • Axe
        • Aleo
        • Bigmems
        • Builtins
        • Execloader
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Std
      • Community
      • Proof-automation
      • ACL2
      • Macro-libraries
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • 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)