• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • C
      • Proof-checker-array
      • Soft
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Ethereum
      • Leftist-trees
      • Java
      • Riscv
      • Taspi
      • Bitcoin
      • Zcash
      • Des
      • X86isa
      • Sha-2
      • Yul
      • Proof-checker-itp13
      • Regex
      • ACL2-programming-language
      • Json
      • Jfkr
      • Equational
      • Cryptography
      • Axe
      • Poseidon
      • Where-do-i-place-my-book
      • Aleo
        • Aleobft
        • Aleovm
        • Leo
          • Grammar
          • Early-version
            • Json2ast
            • Testing
            • Definition
              • Flattening
              • Abstract-syntax
                • Expression
                  • Expressionp
                  • Expression-case
                  • Expression-equiv
                  • Expression-static-call
                    • Expression-static-call->type
                    • Make-expression-static-call
                    • Expression-static-call->args
                    • Expression-static-call->fun
                      • Change-expression-static-call
                    • Expression-binary
                    • Expression-cond
                    • Expression-assoc-const
                    • Expression-struct-component
                    • Expression-struct
                    • Expression-kind
                    • Expression-unary
                    • Expression-tuple-component
                    • Expression-internal-call
                    • Expression-external-call
                    • Expression-var/const
                    • Expression-tuple
                    • Expression-literal
                    • Expression-unit
                    • Expression-fix
                    • Expression-count
                  • Syntax-abstraction
                  • Statement
                  • Files
                  • Input-files
                  • Identifiers
                  • Types
                  • Struct-init
                  • Branch
                  • Statements
                  • Format-strings
                  • Input-syntax-abstraction
                  • Expressions
                  • Output-files
                  • Addresses
                  • Literals
                  • Characters
                  • Expression-list
                  • Statement-list
                  • Output-syntax-abstraction
                  • Struct-init-list
                  • Branch-list
                  • Annotations
                  • Abstract-syntax-trees
                  • Symbols
                  • Keywords
                  • Programs
                  • Packages
                  • Bit-sizes
                • Dynamic-semantics
                • Compilation
                • Static-semantics
                • Concrete-syntax
        • Bigmems
        • Builtins
        • Execloader
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Community
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Expression-static-call

    Expression-static-call->fun

    Get the fun field from a expression-static-call.

    Signature
    (expression-static-call->fun x) → fun
    Arguments
    x — Guard (expressionp x).
    Returns
    fun — Type (identifierp fun).

    This is an ordinary field accessor created by fty::defprod.

    Definitions and Theorems

    Function: expression-static-call->fun$inline

    (defun expression-static-call->fun$inline (x)
      (declare (xargs :guard (expressionp x)))
      (declare (xargs :guard (equal (expression-kind x)
                                    :static-call)))
      (let ((__function__ 'expression-static-call->fun))
        (declare (ignorable __function__))
        (mbe :logic
             (b* ((x (and (equal (expression-kind x) :static-call)
                          x)))
               (identifier-fix (std::da-nth 1 (cdr x))))
             :exec (std::da-nth 1 (cdr x)))))

    Theorem: identifierp-of-expression-static-call->fun

    (defthm identifierp-of-expression-static-call->fun
      (b* ((fun (expression-static-call->fun$inline x)))
        (identifierp fun))
      :rule-classes :rewrite)

    Theorem: expression-static-call->fun$inline-of-expression-fix-x

    (defthm expression-static-call->fun$inline-of-expression-fix-x
      (equal (expression-static-call->fun$inline (expression-fix x))
             (expression-static-call->fun$inline x)))

    Theorem: expression-static-call->fun$inline-expression-equiv-congruence-on-x

    (defthm
     expression-static-call->fun$inline-expression-equiv-congruence-on-x
     (implies (expression-equiv x x-equiv)
              (equal (expression-static-call->fun$inline x)
                     (expression-static-call->fun$inline x-equiv)))
     :rule-classes :congruence)

    Theorem: expression-static-call->fun-when-wrong-kind

    (defthm expression-static-call->fun-when-wrong-kind
      (implies (not (equal (expression-kind x)
                           :static-call))
               (equal (expression-static-call->fun x)
                      (identifier-fix nil))))