Convert a parameter declaration into a singleton omap associating the declared identifier to the declaration.
(paramdecl-to-ident-paramdecl-map paramdecl) → map
If the parameter declaration is unnamed, or if it has not been disambiguated, the empty map is returned instead.
Function:
(defun paramdecl-to-ident-paramdecl-map (paramdecl) (declare (xargs :guard (paramdeclp paramdecl))) (let ((__function__ 'paramdecl-to-ident-paramdecl-map)) (declare (ignorable __function__)) (b* (((paramdecl paramdecl) paramdecl)) (paramdeclor-case paramdecl.decl :declor (omap::update (declor->ident paramdecl.decl.unwrap) (paramdecl-fix paramdecl) nil) :otherwise nil))))
Theorem:
(defthm ident-paramdecl-mapp-of-paramdecl-to-ident-paramdecl-map (b* ((map (paramdecl-to-ident-paramdecl-map paramdecl))) (ident-paramdecl-mapp map)) :rule-classes :rewrite)