• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
        • Z3-installation
        • Smt-hint
        • Tutorial
        • Status
        • Developer
          • Verified
            • Uninterpreted-fn-cp
            • 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
              • Process-smtlink-hints
              • Function-syntax
                • Function-option-name-list
                • Function-option-syntax-p
                • Function-option-lst-syntax-p-helper
                • Function-option-lst-syntax-fix
                • Function-option-type-fix
                • Eval-function-option-type
                • Function-lst-syntax-fix
                • Function-syntax-p
                  • Function-option-type-p
                  • Function-option-lst-syntax-p
                  • Function-lst-syntax-p
                  • Function-syntax-fix
                • Smtlink-hint-syntax
                • Argument-lst-syntax
                • Hypothesis-lst-syntax
                • Translate-cmp-smtlink
                • Process-hint-clause-processor
                • Smt-solver-params
                • Hints-syntax
                • True-set-equiv-relation
              • 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
    • Function-syntax

    Function-syntax-p

    Recognizer for function-syntax.

    Signature
    (function-syntax-p term) → syntax-good?
    Returns
    syntax-good? — Type (booleanp syntax-good?).

    Definitions and Theorems

    Function: function-syntax-p

    (defun function-syntax-p (term)
      (declare (xargs :guard t))
      (let ((acl2::__function__ 'function-syntax-p))
        (declare (ignorable acl2::__function__))
        (b* (((unless (true-listp term)) nil)
             ((unless (consp term)) t)
             ((cons fname function-options) term))
          (and (symbolp fname)
               (function-option-lst-syntax-p function-options)))))

    Theorem: booleanp-of-function-syntax-p

    (defthm booleanp-of-function-syntax-p
      (b* ((syntax-good? (function-syntax-p term)))
        (booleanp syntax-good?))
      :rule-classes :rewrite)