• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • 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
        • 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
        • 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
    • 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)