• 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
              • Smtlink-hint-syntax
              • Argument-lst-syntax
                • Argument-syntax-p
                  • Argument-lst-syntax-p
                  • Argument-lst-syntax-fix
                  • Argument-syntax-fix
                  • Smt-typep
                • 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
    • Argument-lst-syntax

    Argument-syntax-p

    Recognizer for argument-syntax.

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

    Definitions and Theorems

    Function: argument-syntax-p

    (defun argument-syntax-p (term)
      (declare (xargs :guard t))
      (let ((acl2::__function__ 'argument-syntax-p))
        (declare (ignorable acl2::__function__))
        (or (and (atom term) (equal term nil))
            (and (true-listp term)
                 (car term)
                 (not (cdr term))
                 (symbolp (car term)))
            (and (true-listp term)
                 (car term)
                 (cadr term)
                 (not (cddr term))
                 (symbolp (car term))
                 (smt-typep (cadr term)))
            (and (true-listp term)
                 (car term)
                 (cadr term)
                 (not (cddddr term))
                 (symbolp (car term))
                 (smt-typep (cadr term))
                 (equal ':hints (caddr term))
                 (hints-syntax-p (cadddr term))))))

    Theorem: booleanp-of-argument-syntax-p

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