ã¯ããã«ã1970年代ã«ã¨ã¼ãããã主ãªèå°ã¨ãã¦çã¾ãè²ã£ãããã°ã©ãã³ã°è¨èªPrologï¼programming in logicï¼ã¯ãäºå®ã¨ã«ã¼ã«ããä¸ç¨®ã®èªåæ¨è«ãè¡ãç¹ã«ç¹å¾´ãããã¾ãããã®åºæ¬çãªåä½ã¯200è¡ã»ã©ã®Rubyããã°ã©ã ã§å®ç¾ã§ãã¾ããããã§ã¯ãçè ãRubyã§ä½æããPrologå¦çç³»ã解説ãã¾ãããPrologã«ããç°¡åãªããã°ã©ã ä¾ãä¸è¨ã«ç¤ºãã¾ãã ããã¯ãã½ã¯ã©ãã¹ã¯äººéï¼humanï¼ã§ãããããã©ãã³ã¯äººéã§ãããã¨ããäºå®ã¨ãã人éãªãã°ãã¤ãæ»ã¬ï¼mortalï¼ãã¨ããã«ã¼ã«ãæ¸ãããã®ã§ããmortal(X) :- human(X)ã¯ãå¤æ°Xãå®éã«ã¯ä½ã§ãã£ãã¨ãã¦ãããããhuman(X)ãæãç«ã¤ãªãã°ï¼ã¤ã¾ãXã人éãªãã°ï¼ãmortal(X)ãæãç«ã¤ï¼ã¤ã¾ããXã¯ãã¤ãæ»ã¬ï¼ã¨ããæå³ã§ãããç°¡ç¥åã®ãããæ¬å¦çç³»ã§ã¯Rubyã®æ§æè¦
æ²ã½ããã¦ã§ã¢æ ªå¼ä¼ç¤¾ã¯ãæ²éä¿¡ã·ã¹ãã æ ªå¼ä¼ç¤¾ããã³æ ªå¼ä¼ç¤¾æ²ã¤ã³ãã©ããã¯ã¨å¹³æ22å¹´10æ1æ¥ããã£ã¦åä½µãããã¾ãããæ°ä¼ç¤¾åã¯ãæ ªå¼ä¼ç¤¾OKIã½ããã¦ã§ã¢ã¨ãªãã¾ãã3社ãè¡ã£ã¦ããã¾ãäºæ¥ã¯æ°ä¼ç¤¾ã«ã¦å¾æ¥éãç¶ç¶ãããã¾ãã
æ è¡ã好ãã§ããç¥ç¤¾ä»é£ãç¹ã«å¥½ãã§ããä¿ä¸éã¨ã¯é絶ãã空éã§ã¼ã¼ã£ã¨ãæ¥æ§ã«ããã£ã¦ä½ãèããªãã§ããã®ã好ãã§ããã§ãããããããä¿¡ä»°ãã¿ãããªãã®ã¯ãªãã§ããã¾ãã£ãããªã訳ãããªããã ãã©ãã¾ããªãã§ãããã£ã¡ãã£ã¡ã®ã寺ã§ã¼ã¼ã£ã¨éããã¦å¾¡æ±å°ãé ããããã¦ãã¾ãããç´çµãããã¨ã¯ãã ã®ï¼åº¦ããããã¾ããï¼ãã£ã±ãï¼ã
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}