• 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
      • Zcash
      • Proof-checker-itp13
      • Regex
      • ACL2-programming-language
        • Primitive-functions
        • Translated-terms
        • Values
        • Evaluation
        • Program-equivalence
        • Functions
          • Function
            • Function-fix
            • Function-equiv
            • Make-function
            • Function->params
            • Change-function
            • Function->name
            • Function->body
              • Functionp
            • Function-lookup
            • Function-option
            • Lift-function
            • Lift-function-list
            • Function-set
          • Packages
          • Programs
          • Interpreter
          • Evaluation-states
        • 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
    • Function

    Function->body

    Get the body field from a function.

    Signature
    (function->body x) → body
    Arguments
    x — Guard (functionp x).
    Returns
    body — Type (ttermp body).

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

    Definitions and Theorems

    Function: function->body$inline

    (defun function->body$inline (x)
      (declare (xargs :guard (functionp x)))
      (declare (xargs :guard t))
      (let ((__function__ 'function->body))
        (declare (ignorable __function__))
        (mbe :logic
             (b* ((x (and t x)))
               (tterm-fix (std::da-nth 2 x)))
             :exec (std::da-nth 2 x))))

    Theorem: ttermp-of-function->body

    (defthm ttermp-of-function->body
      (b* ((body (function->body$inline x)))
        (ttermp body))
      :rule-classes :rewrite)

    Theorem: function->body$inline-of-function-fix-x

    (defthm function->body$inline-of-function-fix-x
      (equal (function->body$inline (function-fix x))
             (function->body$inline x)))

    Theorem: function->body$inline-function-equiv-congruence-on-x

    (defthm function->body$inline-function-equiv-congruence-on-x
      (implies (function-equiv x x-equiv)
               (equal (function->body$inline x)
                      (function->body$inline x-equiv)))
      :rule-classes :congruence)