This commit is contained in:
Simon Forman 2022-03-27 11:11:20 -07:00
parent 6bfa06b34c
commit aae78523d3
6 changed files with 470 additions and 552 deletions

File diff suppressed because it is too large Load Diff

View File

@ -2298,124 +2298,78 @@ stack, replacing them with a Boolean value.
## neg ## neg
Basis Function Combinator Function
Same as -a. Invert the sign of a number.
Gentzen diagram.
a neg
-----------
-a
### Definition ### Definition
if not basis. > 0 [swap] [-]
### Derivation
if not basis.
### Source
if basis
### Discussion
Lorem ipsum.
### Crosslinks
Lorem ipsum.
------------------------------------------------------------------------ ------------------------------------------------------------------------
## not ## not
Basis Function Combinator Function
Same as not a. Like [bool] but convert the item on the top of the stack to the inverse
Boolean value.
Gentzen diagram. true not
--------------
false
false not
---------------
true
### Definition ### Definition
if not basis. > [bool] \[true\] \[false\] [branch]
### Derivation
if not basis.
### Source
if basis
### Discussion
Lorem ipsum.
### Crosslinks ### Crosslinks
Lorem ipsum. [bool]
--------------------
## !-
"not negative"
(Function, Boolean Predicate)
Integer on top of stack is replaced by Boolean value indicating whether
it is non-negative.
N !-
----------- N < 0
false
N !-
---------- N >= 0
true
### Definition
0 >=
------------------------------------------------------------------------ ------------------------------------------------------------------------
## nulco ## nulco
Basis Function Combinator Function
\[nullary\] cons Take the item on the top of the stack and [cons] it onto `[nullary]`.
Gentzen diagram. [F] nulco
-------------------
[[F] nullary]
### Definition ### Definition
if not basis. > \[[nullary]\] [cons]
### Derivation
if not basis.
### Source
if basis
### Discussion ### Discussion
Lorem ipsum. Helper function for [\|\|] and [&&].
### Crosslinks ### Crosslinks
Lorem ipsum. [&&]
[\|\|]
-------------------- --------------------
## nullary ## nullary
(Combinator) Combinator
Run a quoted program without using any stack values and leave the first item of the result on the stack. Run a quoted program without using any stack values and leave the first
item of the result on the stack.
... [P] nullary ... [P] nullary
--------------------- ---------------------
@ -2423,9 +2377,9 @@ Run a quoted program without using any stack values and leave the first item of
### Definition ### Definition
[stack] dip infra first > \[[stack]\] [dip] [infra] [first]
### Derivation ### Example
... [P] nullary ... [P] nullary
... [P] [stack] dip infra first ... [P] [stack] dip infra first

View File

@ -2,28 +2,14 @@
## neg ## neg
Basis Function Combinator Function
Same as -a. Invert the sign of a number.
Gentzen diagram.
a neg
-----------
-a
### Definition ### Definition
if not basis. > 0 [swap] [-]
### Derivation
if not basis.
### Source
if basis
### Discussion
Lorem ipsum.
### Crosslinks
Lorem ipsum.

View File

@ -2,28 +2,24 @@
## not ## not
Basis Function Combinator Function
Same as not a. Like [bool] but convert the item on the top of the stack to the inverse
Boolean value.
Gentzen diagram. true not
--------------
false
false not
---------------
true
### Definition ### Definition
if not basis. > [bool] \[true\] \[false\] [branch]
### Derivation
if not basis.
### Source
if basis
### Discussion
Lorem ipsum.
### Crosslinks ### Crosslinks
Lorem ipsum. [bool]

View File

@ -2,28 +2,24 @@
## nulco ## nulco
Basis Function Combinator Function
\[nullary\] cons Take the item on the top of the stack and [cons] it onto `[nullary]`.
Gentzen diagram. [F] nulco
-------------------
[[F] nullary]
### Definition ### Definition
if not basis. > \[[nullary]\] [cons]
### Derivation
if not basis.
### Source
if basis
### Discussion ### Discussion
Lorem ipsum. Helper function for [\|\|] and [&&].
### Crosslinks ### Crosslinks
Lorem ipsum. [&&]
[\|\|]

View File

@ -2,26 +2,27 @@
## nullary ## nullary
(Combinator) Combinator
Run a quoted program without using any stack values and leave the first item of the result on the stack. Run a quoted program without using any stack values and leave the first
item of the result on the stack.
... [P] nullary ... [P] nullary
--------------------- ---------------------
... A ... a
### Definition ### Definition
[stack] dip infra first > \[[stack]\] [dip] [infra] [first]
### Derivation ### Example
... [P] nullary ... [P] nullary
... [P] [stack] dip infra first ... [P] [stack] dip infra first
... stack [P] infra first ... stack [P] infra first
... [...] [P] infra first ... [...] [P] infra first
... [A ...] first ... [a ...] first
... A ... a
### Discussion ### Discussion