• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • 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
        • Soft
        • C
        • Bv
        • Imp-language
        • Event-macros
        • Java
        • Bitcoin
        • Ethereum
        • Yul
          • Transformations
          • Language
            • Abstract-syntax
            • Dynamic-semantics
              • Exec
              • Find-fun
              • Init-local
              • Write-vars-values
              • Add-vars-values
              • Add-funs
              • Eoutcome
              • Soutcome
              • Ensure-funscope-disjoint
              • Write-var-value
              • Restrict-vars
              • Add-var-value
              • Funinfo
              • Exec-top-block
              • Values
              • Cstate
              • Funinfo+funenv
              • Read-vars-values
              • Read-var-value
              • Funenv
              • Funscope-for-fundefs
              • Exec-path
              • Path-to-var
              • Funinfo+funenv-result
              • Exec-literal
              • Soutcome-result
              • Mode-set-result
              • Literal-evaluation
              • Funscope-result
              • Funinfo-result
              • Funenv-result
              • Eoutcome-result
              • Cstate-result
              • Paths-to-vars
              • Funinfo-for-fundef
                • Lstate
                • Funscope
                • Mode-set
                • Modes
              • Concrete-syntax
              • Static-soundness
              • Static-semantics
              • Errors
            • Yul-json
          • 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
    • Dynamic-semantics

    Funinfo-for-fundef

    Function information for a function definition.

    Signature
    (funinfo-for-fundef fundef) → funinfo
    Arguments
    fundef — Guard (fundefp fundef).
    Returns
    funinfo — Type (funinfop funinfo).

    This just takes the inputs, outputs, and body of the function definition and forms function information with them.

    Definitions and Theorems

    Function: funinfo-for-fundef

    (defun funinfo-for-fundef (fundef)
      (declare (xargs :guard (fundefp fundef)))
      (let ((__function__ 'funinfo-for-fundef))
        (declare (ignorable __function__))
        (make-funinfo :inputs (fundef->inputs fundef)
                      :outputs (fundef->outputs fundef)
                      :body (fundef->body fundef))))

    Theorem: funinfop-of-funinfo-for-fundef

    (defthm funinfop-of-funinfo-for-fundef
      (b* ((funinfo (funinfo-for-fundef fundef)))
        (funinfop funinfo))
      :rule-classes :rewrite)

    Theorem: funinfo-for-fundef-of-fundef-fix-fundef

    (defthm funinfo-for-fundef-of-fundef-fix-fundef
      (equal (funinfo-for-fundef (fundef-fix fundef))
             (funinfo-for-fundef fundef)))

    Theorem: funinfo-for-fundef-fundef-equiv-congruence-on-fundef

    (defthm funinfo-for-fundef-fundef-equiv-congruence-on-fundef
      (implies (fundef-equiv fundef fundef-equiv)
               (equal (funinfo-for-fundef fundef)
                      (funinfo-for-fundef fundef-equiv)))
      :rule-classes :congruence)