Nesting nonoverlapping cohook deletions #
If maximal cohooks can be deleted from both ends of a string and their total length does not exceed the string length, then the deletions are independent: after deleting the right cohook, the original left cohook can still be deleted. The proof identifies the remaining middle substring and replays the left cohook on it.
If cohooks at the two ends occupy no more than the whole source word, deleting the right cohook leaves a word from which the left cohook can still be deleted.
The signs of a cohook result consist of its positive tail, its initial
negative boundary letter, and the signs of the base word, in the reverse
order used by signedPathSigns.
A left cohook deletion gives the complementary suffix description of the original word's sign list.
In the original orientation, a left cohook deletion displays the signs of the shortened word followed by its negative boundary letter and positive tail.
If two endpoint cohook deletions overlap, each positive cohook tail runs one letter past the opposite shortened word, and the source has exactly one negative-to-positive sign change.
In the overlap case, the right-shortened word is entirely negative and the left-shortened word is entirely positive.
The rigid overlap word is a literal two-arm wedge. Both arms are ordinary surviving paths starting at one common displayed vertex; traversing the left arm backwards and then the right arm forwards recovers the source word. Their lengths are exactly the two positive cohook tails.
Overlapping left and right cohooks share exactly their two boundary letters: their deletion lengths exceed the word length by precisely two.
The strict overlap inequality is equivalent to the exact two-letter overlap formula.
Two endpoint cohook deletions either nest to give successive deletions, or have the rigid two-letter overlap and one-change sign pattern.