(look-up-guard fn world) looks up the guard of the function
Function:
(defun look-up-guard (fn world) (declare (xargs :guard (and (symbolp fn) (plist-worldp world)))) (b* ((?tmp (look-up-formals fn world))) (getprop fn 'guard t 'acl2::current-acl2-world world)))