• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • 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
        • C
          • Syntax-for-tools
            • Formalized-subset
              • Exprs-formalp
              • Stmts-formalp
              • Type-spec-list-integer-formalp
              • Type-spec-list-formalp
              • Extdecl-formalp
              • Ident-formalp
              • Tyname-formalp
              • Pointers-formalp
              • Dirdeclor-obj-formalp
              • Desiniter-formalp
              • Fundef-formalp
              • Decl-obj-formalp
              • Decl-block-formalp
              • Struct-declon-formalp
              • Initdeclor-obj-formalp
              • Initdeclor-block-formalp
              • Decl-struct-formalp
              • Dirdeclor-fun-formalp
                • Dirdeclor-block-formalp
                • Initdeclor-fun-formalp
                • Transunit-ensemble-formalp
                • Param-declor-formalp
                • Param-declon-formalp
                • Declor-obj-formalp
                • Decl-fun-formalp
                • Struct-declor-formalp
                • Struct-declon-list-formalp
                • Initer-formalp
                • Struni-spec-formalp
                • Stor-spec-list-formalp
                • Declor-fun-formalp
                • Declor-block-formalp
                • Param-declon-list-formalp
                • Desiniter-list-formalp
                • Extdecl-list-formalp
                • Transunit-formalp
                • Const-formalp
                • Stmt-formalp
                • Expr-formalp
                • Expr-list-formalp
                • Block-item-list-formalp
                • Block-item-formalp
                • Comp-stmt-formalp
              • Mapping-to-language-definition
              • Input-files
              • Compilation-database
              • Printer
              • Output-files
              • Abstract-syntax-operations
              • Implementation-environments
              • Abstract-syntax
              • Concrete-syntax
              • Disambiguation
              • Validation
              • Gcc-builtins
              • Preprocessing
              • Parsing
            • Atc
            • Transformation-tools
            • Language
            • Representation
            • Insertion-sort
            • Pack
          • Soft
          • Bv
          • Imp-language
          • Ethereum
          • Event-macros
          • Java
          • Riscv
          • Bitcoin
          • Zcash
          • Yul
          • ACL2-programming-language
          • Prime-fields
          • Json
          • Syntheto
          • File-io-light
          • Cryptography
          • Number-theory
          • Axe
          • Lists-light
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Formalized-subset

    Dirdeclor-fun-formalp

    Check if a direct declarator has formal dynamic semantics, as part of a function declaration.

    Signature
    (dirdeclor-fun-formalp dirdeclor) → yes/no
    Arguments
    dirdeclor — Guard (dirdeclorp dirdeclor).
    Returns
    yes/no — Type (booleanp yes/no).

    It must be a function declarator with parameters, where the inner declarator is just a name; see ldm-dirdeclor-fun. The parameter declarations must be supported.

    Definitions and Theorems

    Function: dirdeclor-fun-formalp

    (defun dirdeclor-fun-formalp (dirdeclor)
     (declare (xargs :guard (dirdeclorp dirdeclor)))
     (declare (xargs :guard (dirdeclor-unambp dirdeclor)))
     (let ((__function__ 'dirdeclor-fun-formalp))
      (declare (ignorable __function__))
      (dirdeclor-case
          dirdeclor
          :function-params
          (and (dirdeclor-case dirdeclor.declor :ident)
               (ident-formalp (dirdeclor-ident->ident dirdeclor.declor))
               (param-declon-list-formalp dirdeclor.params))
          :function-names
          (and (dirdeclor-case dirdeclor.declor :ident)
               (ident-formalp (dirdeclor-ident->ident dirdeclor.declor))
               (endp dirdeclor.names))
          :otherwise nil)))

    Theorem: booleanp-of-dirdeclor-fun-formalp

    (defthm booleanp-of-dirdeclor-fun-formalp
      (b* ((yes/no (dirdeclor-fun-formalp dirdeclor)))
        (booleanp yes/no))
      :rule-classes :rewrite)

    Theorem: dirdeclor-fun-formalp-of-dirdeclor-fix-dirdeclor

    (defthm dirdeclor-fun-formalp-of-dirdeclor-fix-dirdeclor
      (equal (dirdeclor-fun-formalp (dirdeclor-fix dirdeclor))
             (dirdeclor-fun-formalp dirdeclor)))

    Theorem: dirdeclor-fun-formalp-dirdeclor-equiv-congruence-on-dirdeclor

    (defthm
          dirdeclor-fun-formalp-dirdeclor-equiv-congruence-on-dirdeclor
      (implies (dirdeclor-equiv dirdeclor dirdeclor-equiv)
               (equal (dirdeclor-fun-formalp dirdeclor)
                      (dirdeclor-fun-formalp dirdeclor-equiv)))
      :rule-classes :congruence)