this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

doc/ref/impl: fix order of arguments in δ partial feature function

The previous text, quite possibly copied verbatim from upstream
sources, defined δ as being Label x Q -> Q but in several places used
it as Q x Label -> Q. To me, this use is the more intuitive API.

- Updated the definition to match the use.
- Added a few extra words around paths to add clarity too.

Signed-off-by: Matthew Sackman <matthew@cue.works>
Change-Id: I8fad8938affb611032e3a39ff344fbf056cc2834
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1197344
Reviewed-by: Marcel van Lohuizen <mpvl@gmail.com>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>

+3 -3
+3 -3
doc/ref/impl.md
··· 95 95 > 1. `q0 ∈ Q`, is the root node, 96 96 > 1. `υ: Q → T` is the total node typing function, 97 97 > for a finite set of possible terms `T`. 98 - > 1. `δ: Label × Q → Q` is the partial feature function, 98 + > 1. `δ: Q × Label → Q` is the partial feature function, 99 99 > 100 100 > subject to the following conditions: 101 101 > 102 102 > 1. there is no node `q` or label `l` such that `δ(q, l) = q0` (root) 103 103 > 2. for every node `q` in `Q` there is a path `π` (i.e. a sequence of 104 104 > members of Label) such that `δ(q0, π) = q` (unique root, correctness) 105 - > 3. there is no node `q` or path `π` such that `δ(q, π) = q` (no cycles) 105 + > 3. there is no node `q` or non-empty path `π` such that `δ(q, π) = q` (no cycles) 106 106 > 107 107 > where `δ` is extended to be defined on paths as follows: 108 108 > 109 109 > 1. `δ(q, ϵ) = q`, where `ϵ` is the empty path 110 - > 2. `δ(q, l∙π) = δ(δ(l, q), π)` 110 + > 2. `δ(q, l∙π) = δ(δ(q, l), π)` 111 111 > 112 112 > The _substructures_ of a typed feature structure are the 113 113 > typed feature structures rooted at each node in the structure.