• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • 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
        • C
          • Syntax-for-tools
            • Disambiguator
            • Abstract-syntax
            • Parser
            • Validator
            • Printer
            • Formalized-subset
              • Expr-pure-formalp
              • Type-spec-list-integer-formalp
              • Stmts/blocks-formalp
              • Extdecl-formalp
              • Ident-formalp
              • Type-spec-list-formalp
              • Tyname-formalp
              • Pointers-formalp
              • Dirdeclor-obj-formalp
              • Desiniter-formalp
              • Fundef-formalp
              • Decl-obj-formalp
              • Decl-block-formalp
              • Initdeclor-obj-formalp
              • Expr-asg-formalp
              • Structdecl-formalp
              • Initdeclor-block-formalp
              • Decl-struct-formalp
              • Dirdeclor-fun-formalp
              • Dirdeclor-block-formalp
              • Initdeclor-fun-formalp
              • Transunit-ensemble-formalp
              • Param-declor-formalp
              • Initer-formalp
              • Expr-call-formalp
                • Declor-obj-formalp
                • Decl-fun-formalp
                • Param-declon-formalp
                • Structdeclor-formalp
                • Stor-spec-list-formalp
                • Declor-fun-formalp
                • Declor-block-formalp
                • Strunispec-formalp
                • Structdecl-list-formalp
                • Param-declon-list-formalp
                • Desiniter-list-formalp
                • Extdecl-list-formalp
                • Expr-list-pure-formalp
                • Transunit-formalp
                • Const-formalp
                • Stmt-formalp
                • Block-item-list-formalp
                • Block-item-formalp
              • Mapping-to-language-definition
              • Input-files
              • Defpred
              • Output-files
              • Abstract-syntax-operations
              • Validation-information
              • Implementation-environments
              • Concrete-syntax
              • Ascii-identifiers
              • Unambiguity
              • Preprocessing
              • Abstraction-mapping
            • Atc
            • Language
            • Representation
            • Transformation-tools
            • Insertion-sort
            • Pack
          • 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
    • Formalized-subset

    Expr-call-formalp

    Check if an expression has formal dynamic semantics, as a call expression.

    Signature
    (expr-call-formalp expr) → yes/no
    Arguments
    expr — Guard (exprp expr).
    Returns
    yes/no — Type (booleanp yes/no).

    These are the expressions supported by c::exec-expr-call. The expression must be a function call, the function sub-expression must be an identifier, and the arguments must be supported pure expressions.

    Definitions and Theorems

    Function: expr-call-formalp

    (defun expr-call-formalp (expr)
     (declare (xargs :guard (exprp expr)))
     (declare (xargs :guard (expr-unambp expr)))
     (let ((__function__ 'expr-call-formalp))
       (declare (ignorable __function__))
       (and (expr-case expr :funcall)
            (expr-case (expr-funcall->fun expr)
                       :ident)
            (ident-formalp (expr-ident->ident (expr-funcall->fun expr)))
            (expr-list-pure-formalp (expr-funcall->args expr)))))

    Theorem: booleanp-of-expr-call-formalp

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

    Theorem: expr-call-formalp-of-expr-fix-expr

    (defthm expr-call-formalp-of-expr-fix-expr
      (equal (expr-call-formalp (expr-fix expr))
             (expr-call-formalp expr)))

    Theorem: expr-call-formalp-expr-equiv-congruence-on-expr

    (defthm expr-call-formalp-expr-equiv-congruence-on-expr
      (implies (expr-equiv expr expr-equiv)
               (equal (expr-call-formalp expr)
                      (expr-call-formalp expr-equiv)))
      :rule-classes :congruence)