• Top
  • Funparam

Funparam->name

Get the name field from a funparam.

Signature
(funparam->name x) → name
Arguments
x — Guard (funparamp x).
Returns
name — Type (identifierp name).

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

Definitions and Theorems

Function: funparam->name$inline

(defun funparam->name$inline (x)
  (declare (xargs :guard (funparamp x)))
  (declare (xargs :guard t))
  (let ((__function__ 'funparam->name))
    (declare (ignorable __function__))
    (mbe :logic
         (b* ((x (and t x)))
           (identifier-fix (cdr (std::da-nth 0 (cdr x)))))
         :exec (cdr (std::da-nth 0 (cdr x))))))

Theorem: identifierp-of-funparam->name

(defthm identifierp-of-funparam->name
  (b* ((name (funparam->name$inline x)))
    (identifierp name))
  :rule-classes :rewrite)

Theorem: funparam->name$inline-of-funparam-fix-x

(defthm funparam->name$inline-of-funparam-fix-x
  (equal (funparam->name$inline (funparam-fix x))
         (funparam->name$inline x)))

Theorem: funparam->name$inline-funparam-equiv-congruence-on-x

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