OK: Maxima 5.20.1 + GCL
(%i5) subst('%f = lambda([[s]], g), hgfred([a,b],[c],x));
(%o5) g([a,b],[c],x)
Not OK: CVS Maxima + Clozure CL:
(%i1) subst('%f = lambda([[s]], g), hgfred([a,b],[c],x));
Maxima encountered a Lisp error:
value ((LAMBDA SIMP) (#1=(MLIST) (#1# $S)) $G) is not of the expected
type SYMBOL.
Has something changed?
Barton