0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

演習2.17 コンビネータの抽象化 W=[x,y].xyy

0
Last updated at Posted at 2026-02-21

コンビネータ論理の抽象化(abstraction)についての演習問題をいくつか解いてみる。

参考図書は
Hindely & Seldin 2008, Lambda-Calculus and Combinators: An Introduction PDF

演習問題 2.17

$$\begin{array}{c}
{\bf W}XY& \triangleright_w& XYY
\end{array}$$

を満たす${\bf W}$について抽象化で求めてみる。

解答

$$\begin{array}{l}
{\bf W} &=& [x,y].xyy\\
&=& [x].([y].xyy)\\
&=& [x].([y].(xy)y)\\
&=& [x].({\bf S}([y].xy)([y].y))\\
&=& [x].({\bf S}(x)({\bf I}))\\
&=& [x].({\bf S}x){\bf I}\\
&=& {\bf S}([x].{\bf S}x)([x].{\bf I})\\
&=& {\bf S}({\bf S})({\bf KI})\\
&=& {\bf S}{\bf S}({\bf KI})\\
\end{array}$$
${\bf I}={\bf SKK}$ なので、${\bf S},{\bf K}$ のみを使って
$$\begin{array}{l}
{\bf W} &=& {\bf SS}({\bf K}({\bf SKK}))\\
\end{array}$$

とも書ける。

検証

$$\begin{array}{l}
{\bf W}xy &=& {\bf SS}({\bf KI})xy\\
&\triangleright_w& {\bf S}x({\bf KI}x)y\\
&\triangleright_w& {\bf S}x({\bf I})y\\
&\triangleright_w& xy({\bf I}y)\\
&\triangleright_w& xy(y)\\
&=& xyy\\
\end{array}$$
検証できた。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?