Collect all the quoted constants in a term.
(atj-add-qconstants-in-term term qconsts) → new-qconsts
We return all the values of the quoted constants
that appear directly quoted in the term.
That is, for each sub-term of the form
The record that stores the collected constants is threaded through the recursive functions.
Theorem:
(defthm return-type-of-atj-add-qconstants-in-term.new-qconsts (implies (atj-qconstants-p qconsts) (b* ((?new-qconsts (atj-add-qconstants-in-term term qconsts))) (atj-qconstants-p new-qconsts))) :rule-classes :rewrite)
Theorem:
(defthm return-type-of-atj-add-qconstants-in-terms.new-qconsts (implies (atj-qconstants-p qconsts) (b* ((?new-qconsts (atj-add-qconstants-in-terms terms qconsts))) (atj-qconstants-p new-qconsts))) :rule-classes :rewrite)