aboutsummaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2021-01-07 21:11:10 -0500
committerMarshall Lochbaum <mwlochbaum@gmail.com>2021-01-07 21:11:19 -0500
commit6ad2532cd6e2daec265116d533c04c7b9e338fa4 (patch)
tree78ca87aaaf8c1f5248a5dd0a706c76628816d4a3 /spec
parentf4236b4669adfbf68afa28c721b641f34da2fd6b (diff)
Insert identity can be unique just among arrays with the appropriate cell shape
Diffstat (limited to 'spec')
-rw-r--r--spec/inferred.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/inferred.md b/spec/inferred.md
index a12da31b..5b43c0ef 100644
--- a/spec/inferred.md
+++ b/spec/inferred.md
@@ -12,7 +12,7 @@ When monadic Fold (`´`) or Insert (`˝`) is called on an array of length 0, BQN
For Fold, the result of `𝔽´` on an empty list is defined to be a right identity value for the *range* of `𝔽`, if exactly one such value exists. If an identity can't be proven to uniquely exist, then an error results.
-For Insert, `𝔽˝` on an array of length 0 is defined similarly, but also depends on the cell shape `1↓≢𝕩`. The required domain is the arrays of that shape that also lie in the range of `𝔽` (over arbitrary arguments, not shape-restricted ones).
+For Insert, `𝔽˝` on an array of length 0 is defined similarly, but also depends on the cell shape `1↓≢𝕩`. The required domain is the arrays of that shape that also lie in the range of `𝔽` (over arbitrary arguments, not shape-restricted ones). Furthermore, an identity may be unique among all possible arguments as in the case of Fold, or it may be an array with shape `1↓≢𝕩` and be unique among arrays with that shape. For example, with cell shape `3‿2`, all of `0`, `2⥊0`, and `3‿2⥊0` are identities for `+`, but `3‿2⥊0` can be used because it is the only indentity with shape `3‿2`, while the other identities aren't unique and can't be used.
Identity values for the arithmetic primitives below must be recognized. Under Fold, the result is the given identity value, while under Insert, it is the identity value reshaped to the argument's cell shape.