lambda-zero
lambda-zero copied to clipboard
Meaning of ↑ and define
What are the semantics of ↑ and define? The tutorial doesn't explain these, but they are used in the prelude.
The tutorial also doesn't talk about ⦊, ∈, or {}, though these seem to have fairly clear semantics.
↑ is the successor function, which increments a natural number. It's a constructor for the natural number ADT defined here https://github.com/clark800/lambda-zero/blob/491e96ad8978793904bea7ef1ab424b5b0fc1353/libraries/prelude.zero#L62
define is basically a prefix form of ≔. Unfortunately the readme is very out of date and incomplete currently.