(There's a list with all the lambda notes here.)
Some editors are readonly. Its content is evaluated when page loads or so. Mostly for adding definitions to toplevel so they can be used later in the post:
In the regular editors we can do stuff.
Normal text-editor-stuff should work. Also:
λ(or you can use
` instead ofλ
≜(or you can use
ctrl+enter, ctrl+shift+enter and ctrl+r all work on the line the cursor is on. Results are printed on new line(s), after. (And the cursor moves to end of result.)
So, normally, if we have written some term that uses some of the toplevel defintions, we do ctrl+r and then either ctrl+enter a few times, or ctrl+shift+enter once.
:= are for definitons). ctrl+enter on a line that goes like <identifier> ≜ <term> adds a definition.
(Most characters can be used in identifiers. But not whitespace ones, and not the ones that are used for other stuff:
The terms used in definitions can use the names of definitions that already exist. We can define
2 like this now, as long as we have defined
S first: (ctrl+enter)
(We can evaluate it to check that the result looks reasonably twoish. Two applications of f is very two-like, so the result should look like
λf.λx.f (f x). (ctrl+r, then ctrl+shift+enter))
If we wanna get rid of a definition we can do
<identifier> ≜. We’ll remove
ω (it’s scary): (ctrl+enter)
If we try to evaluate the thing we did earler, we won’t get the same result now, since
ω will just be treated as some free variable... (ctrl+r, then ctrl+shift+enter)
That’s more or less it. In posts like this it’s mostly enough to do ctrl+enter on definitions, and ctrl+r and then ctrl+shift+enter on other stuff...