summaryrefslogtreecommitdiffhomepage
path: root/lambda-calculus.html.markdown
diff options
context:
space:
mode:
authornichijou <angusbike@gmail.com>2019-02-17 12:10:49 +0800
committernichijou <angusbike@gmail.com>2019-02-17 12:10:49 +0800
commitef11bde030bc530f713d35f1ff03a248ea658b56 (patch)
treed60247f0ccf08512fe63303c4a5164c615b8d265 /lambda-calculus.html.markdown
parent1980272c4f37eae54f3b704e3fce2ba8fab00ecf (diff)
markdown syntax issue
Diffstat (limited to 'lambda-calculus.html.markdown')
-rw-r--r--lambda-calculus.html.markdown5
1 files changed, 5 insertions, 0 deletions
diff --git a/lambda-calculus.html.markdown b/lambda-calculus.html.markdown
index 8343d62a..a5535d6c 100644
--- a/lambda-calculus.html.markdown
+++ b/lambda-calculus.html.markdown
@@ -139,6 +139,7 @@ Take the church number 2 for example:
`2 = λf.λx.f(f x)`
For the inner part `λx.f(f x)`:
+
```
λx.f(f x)
= S (λx.f) (λx.(f x)) (case 3)
@@ -147,6 +148,7 @@ For the inner part `λx.f(f x)`:
```
So:
+
```
2
= λf.λx.f(f x)
@@ -156,6 +158,7 @@ So:
```
For the first argument `λf.(S (K f))`:
+
```
λf.(S (K f))
= S (λf.S) (λf.(K f)) (case 3)
@@ -164,6 +167,7 @@ For the first argument `λf.(S (K f))`:
```
For the second argument `λf.(S (K f) I)`:
+
```
λf.(S (K f) I)
= λf.((S (K f)) I)
@@ -174,6 +178,7 @@ For the second argument `λf.(S (K f) I)`:
```
Merging them up:
+
```
2
= S (λf.(S (K f))) (λf.(S (K f) I))