• 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
          • Soft-future-work
          • Soft-macros
            • Defun-inst
              • Defun-inst-implementation
                • Defun-inst-quant-events
                • Defun-inst-plain-events
                • Defun-inst-fn
                • Defun-inst-choice-events
                • Check-qrewrite-rule-funvars
                • Check-sofun-inst
                  • Show-defun-inst
                  • Defun-inst-macro-definition
              • Defequal
              • Defsoft
              • Defthm-inst
              • Defun2
              • Defunvar
              • Defun-sk2
              • Defchoose2
              • Defthm-2nd-order
              • Define-sk2
              • Defund-sk2
              • Define2
              • Defund2
            • Updates-to-workshop-material
            • Soft-implementation
            • Soft-notions
          • C
          • Bv
          • Imp-language
          • Event-macros
          • Java
          • Bitcoin
          • Ethereum
          • Yul
          • Zcash
          • ACL2-programming-language
          • 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
    • Defun-inst-implementation

    Check-sofun-inst

    Recognize designations of instances of second-order functions.

    Signature
    (check-sofun-inst sofun-inst wrld) → yes/no
    Arguments
    wrld — Guard (plist-worldp wrld).
    Returns
    yes/no — A booleanp.

    A designation of an instance of a second-order function has the form (sofun (f1 . g1) ... (fM . gM)), where sofun is a second-order function and ((f1 . g1) ... (fM . gM)) is an instantiation. These designations are used in defun-inst.

    Definitions and Theorems

    Function: check-sofun-inst

    (defun check-sofun-inst (sofun-inst wrld)
      (declare (xargs :guard (plist-worldp wrld)))
      (let ((__function__ 'check-sofun-inst))
        (declare (ignorable __function__))
        (and (true-listp sofun-inst)
             (>= (len sofun-inst) 2)
             (sofunp (car sofun-inst) wrld)
             (funvar-instp (cdr sofun-inst) wrld))))