Get the thm-index field from a expr-gin.
This is an ordinary field accessor created by fty::defprod.
Function:
(defun expr-gin->thm-index$inline (x) (declare (xargs :guard (expr-ginp x))) (declare (xargs :guard t)) (let ((__function__ 'expr-gin->thm-index)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and t x))) (acl2::pos-fix (cdr (std::da-nth 6 x)))) :exec (cdr (std::da-nth 6 x)))))
Theorem:
(defthm posp-of-expr-gin->thm-index (b* ((thm-index (expr-gin->thm-index$inline x))) (posp thm-index)) :rule-classes :rewrite)
Theorem:
(defthm expr-gin->thm-index$inline-of-expr-gin-fix-x (equal (expr-gin->thm-index$inline (expr-gin-fix x)) (expr-gin->thm-index$inline x)))
Theorem:
(defthm expr-gin->thm-index$inline-expr-gin-equiv-congruence-on-x (implies (expr-gin-equiv x x-equiv) (equal (expr-gin->thm-index$inline x) (expr-gin->thm-index$inline x-equiv))) :rule-classes :congruence)