Extracting children from flat constructor streams #
RecursiveEncoding.child? arity index discards the root token, skips index complete subtrees,
and returns the next complete subtree. It returns none on missing or incomplete subtrees.
It does not check the root's constructor or declared arity: a generated constructor projection
checks its constructor separately before selecting the corresponding recursive field.
For each fixed field index, extraction has a native polynomial-time certificate on
encList encToken, assuming native polynomial-time arity recognition and a fixed maximum arity.
No token decoder or token inhabitant is assumed. This is extraction on typed token streams,
not decoding of arbitrary Boolean words.
Extract a complete child stream at a fixed zero-based recursive-field index. The root's constructor and arity are not checked; constructor projections supply that check separately.
In a valid sequence of child streams, extraction preserves the selected child exactly, independently of any following suffix.
For any fixed recursive-field index, subtree extraction has a native polynomial-time certificate. Token arities need a native certificate and a fixed bound; token decoding is not assumed.