• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
        • Z3-installation
        • Smt-hint
        • Tutorial
        • Status
        • Developer
          • Verified
            • Uninterpreted-fn-cp
              • Fhg-single-args
              • Fhg-args
              • Lambda-binding
                • Lambda-binding-fix
                • Lambda-binding-equiv
                • Make-lambda-binding
                • Lambda-binding->formals
                • Lambda-binding->actuals
                • Change-lambda-binding
                • Lambda-binding-p
                  • Lambda-binding-list
                • Generate-fn-hint-lst
              • Smt-hint-interface
              • Function-expansion
              • Smt-config
              • Fty-support
              • Smt-computed-hints
              • Add-hypo-cp
              • Smt-hint-please
              • Type-extract-cp
              • Smt-extract
              • Smtlink-process-user-hint
              • Smt-basics
              • Smt-type-hyp
              • Smt-magic-fix
            • Trusted
        • Abnf
        • Vwsim
        • Isar
        • Wp-gen
        • Dimacs-reader
        • Pfcs
        • Legacy-defrstobj
        • Proof-checker-array
        • Soft
        • C
        • Farray
        • Rp-rewriter
        • Instant-runoff-voting
        • Imp-language
        • Sidekick
        • Leftist-trees
        • Java
        • Taspi
        • Bitcoin
        • Riscv
        • Des
        • Ethereum
        • X86isa
        • Sha-2
        • Yul
        • Zcash
        • Proof-checker-itp13
        • Regex
        • ACL2-programming-language
        • Json
        • Jfkr
        • Equational
        • Cryptography
        • Poseidon
        • Where-do-i-place-my-book
        • Axe
        • Bigmems
        • Builtins
        • Execloader
        • Aleo
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Lambda-binding

    Lambda-binding-p

    Recognizer for lambda-binding structures.

    Signature
    (lambda-binding-p x) → *

    Definitions and Theorems

    Function: lambda-binding-p

    (defun lambda-binding-p (x)
      (declare (xargs :guard t))
      (let ((acl2::__function__ 'lambda-binding-p))
        (declare (ignorable acl2::__function__))
        (and (mbe :logic (and (alistp x)
                              (equal (strip-cars x)
                                     '(formals actuals)))
                  :exec (fty::alist-with-carsp x '(formals actuals)))
             (b* ((formals (cdr (std::da-nth 0 x)))
                  (actuals (cdr (std::da-nth 1 x))))
               (and (symbol-listp formals)
                    (pseudo-term-listp actuals)
                    (equal (len formals) (len actuals)))))))

    Theorem: consp-when-lambda-binding-p

    (defthm consp-when-lambda-binding-p
      (implies (lambda-binding-p x) (consp x))
      :rule-classes :compound-recognizer)