• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Pfcs
      • Wp-gen
      • Dimacs-reader
      • Legacy-defrstobj
      • Proof-checker-array
      • Soft
      • C
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Leftist-trees
      • Java
      • Taspi
      • Riscv
      • Bitcoin
      • 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
        • Aleo
        • Bigmems
        • Builtins
        • Execloader
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Std
      • Community
      • Proof-automation
      • ACL2
      • Macro-libraries
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Function

    Function->params

    Get the params field from a function.

    Signature
    (function->params x) → params
    Arguments
    x — Guard (functionp x).
    Returns
    params — Type (symbol-value-listp params).

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

    Definitions and Theorems

    Function: function->params$inline

    (defun function->params$inline (x)
      (declare (xargs :guard (functionp x)))
      (declare (xargs :guard t))
      (let ((__function__ 'function->params))
        (declare (ignorable __function__))
        (mbe :logic
             (b* ((x (and t x)))
               (symbol-value-list-fix (std::da-nth 1 x)))
             :exec (std::da-nth 1 x))))

    Theorem: symbol-value-listp-of-function->params

    (defthm symbol-value-listp-of-function->params
      (b* ((params (function->params$inline x)))
        (symbol-value-listp params))
      :rule-classes :rewrite)

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

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

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

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