Step
*
of Lemma
mapfilter-as-reduce
∀[L,p,f:Top]. (mapfilter(λx.f[x];λx.p[x];L) ~ reduce(λx,a. if p[x] then [f[x] / a] else a fi ;[];L))
BY
{ (Unfold `mapfilter` 0 THEN ListIndSq `L' THEN RWO "map-ifthenelse" 0 THEN Reduce 0 THEN Auto) }
Latex:
Latex:
\mforall{}[L,p,f:Top]. (mapfilter(\mlambda{}x.f[x];\mlambda{}x.p[x];L) \msim{} reduce(\mlambda{}x,a. if p[x] then [f[x] / a] else a fi ;[];L)\000C)
By
Latex:
(Unfold `mapfilter` 0 THEN ListIndSq `L' THEN RWO "map-ifthenelse" 0 THEN Reduce 0 THEN Auto)
Home
Index