Cause a soft error if the proof of any named formula fails.
(ensure-named-formulas named-formulas named-hints verbose error-erp error-val ctx state) → (mv erp val state)
Use the message from the named formula proof failure as error message.
In case of error, use er-soft+ with the error flag and value passed as arguments.
Function:
(defun ensure-named-formulas (named-formulas named-hints verbose error-erp error-val ctx state) (declare (xargs :stobjs (state))) (declare (xargs :guard (and (symbol-alistp named-formulas) (symbol-truelist-alistp named-hints) (booleanp verbose)))) (let ((__function__ 'ensure-named-formulas)) (declare (ignorable __function__)) (b* (((mv success msg state) (prove-named-formulas named-formulas named-hints verbose state)) ((unless success) (er-soft+ ctx error-erp error-val "~@0" msg))) (value nil))))