-
́-́ (λ-, -) , , .
λ- . , . , , . , , . λ- . λ- . - ( -) .
|
|
[] λ-
, λ-, , (), λ-, . - .
[]
λ- :
[] β-
,
,
,![(\lambda x.t)\ a = t[x:=a],](http://upload.wikimedia.org/wikipedia/ru/math/3/0/8/30824ddd117e981de8b961f75f755929.png)
β-.
, , (redex). , β- «» λ-, . λ- , , .
[] η-
η- , , , , . η-
(
:
).
[] ()
,
,
. . , λ- « ». (: ), , . . (1924).
[] λ-
, λ- , λ- ( , , ), λ-. λ- - , D, D D. D , D D D: ́ , .
1970- , D ( [1], ) D D [2]. , , , , .
[]
- f(n) = 1, if n = 0; else n × f(n - 1).
-, . , , . , . , , . , , ( r), .
- g := λr. λn.(1, if n = 0; else n × (r r (n-1)))
- f := g g
, . -, , , . . . :
- Y = λg.(λx.g (x x)) (λx.g (x x))
-, Y g g; :
- Y g
- λh.((λx.h (x x)) (λx.h (x x))) g
- (λx.g (x x)) (λx.g (x x))
- g ((λx.g (x x)) (λx.g (x x)))
- g (Y g).
, , , g (Y g) n, n , . n = 4, :
g (Y g) 4 (λfn.(1, if n = 0; and n·(f(n-1)), if n>0)) (Y g) 4 (λn.(1, if n = 0; and n·((Y g) (n-1)), if n>0)) 4 1, if 4 = 0; and 4·(g(Y g) (4-1)), if 4>0 4·(g(Y g) 3) 4·(λn.(1, if n = 0; and n·((Y g) (n-1)), if n>0) 3) 4·(1, if 3 = 0; and 3·(g(Y g) (3-1)), if 3>0) 4·(3·(g(Y g) 2)) 4·(3·(λn.(1, if n = 0; and n·((Y g) (n-1)), if n>0) 2)) 4·(3·(1, if 2 = 0; and 2·(g(Y g) (2-1)), if 2>0)) 4·(3·(2·(g(Y g) 1))) 4·(3·(2·(λn.(1, if n = 0; and n·((Y g) (n-1)), if n>0) 1))) 4·(3·(2·(1, if 1 = 0; and 1·((Y g) (1-1)), if 1>0))) 4·(3·(2·(1·((Y g) 0)))) 4·(3·(2·(1·((λn.(1, if n = 0; and n·((Y g) (n-1)), if n>0) 0)))) 4·(3·(2·(1·(1, if 0 = 0; and 0·((Y g) (0-1)), if 0>0)))) 4·(3·(2·(1·(1)))) 24
, , Y, -. , , , .
[]
«λ-» « » callback-, , , .
[] .
[]
- Scott D.S. The lattice of flow diagrams.-- Lecture Notes in Mathematics, 188, Symposium on Semantics of Algorithmic Languages.-- Berlin, Heidelberg, New York: Springer-Verlag, 1971, pp. 311372.
- Scott D.S. Lattice-theoretic models for various type-free calculi. In: Proc. 4th Int. Congress for Logic, Methodology, and the Philosophy of Science, Bucharest, 1972.
[]
- X. -. : . . .: , 1985. 606 .
- . . - // , . . , 2011, № 1, . 203206
| . , . |
,
.
, , λ- ,
,
:
,
. , . ,
, ,
, .
.