Get the alist field from a macro-table.
(macro-table->alist x) → alist
This is an ordinary field accessor created by fty::defprod.
Function:
(defun macro-table->alist$inline (x) (declare (xargs :guard (macro-tablep x))) (declare (xargs :guard t)) (mbe :logic (b* ((x (and t x)) (alist (ident-macroinfo-alist-fix (cdr (std::da-nth 0 x))))) (if (no-duplicatesp-equal (strip-cars alist)) alist nil)) :exec (cdr (std::da-nth 0 x))))
Theorem:
(defthm ident-macroinfo-alistp-of-macro-table->alist (b* ((alist (macro-table->alist$inline x))) (ident-macroinfo-alistp alist)) :rule-classes :rewrite)
Theorem:
(defthm macro-table->alist$inline-of-macro-table-fix-x (equal (macro-table->alist$inline (macro-table-fix x)) (macro-table->alist$inline x)))
Theorem:
(defthm macro-table->alist$inline-macro-table-equiv-congruence-on-x (implies (macro-table-equiv x x-equiv) (equal (macro-table->alist$inline x) (macro-table->alist$inline x-equiv))) :rule-classes :congruence)