Lukas' Notes

Definition

Transitivity (Border, String)

A border of a border is a border of the original string. For strings ,

This is transitivity of the border relation. The diagram shows one arrangement; the two occurrences of in need not be disjoint.

Why the Ends Are Preserved

Start with , which begins and ends with . Now suppose a string begins and ends with .

Both ends of contain

The prefix of the prefix and the suffix of the suffix remain at the ends of .

Proof

  • At the beginning: begins with , and begins with . Therefore begins with .
  • At the end: ends with , and ends with . Therefore ends with .

Thus is both a prefix and a suffix of , so it is a border of .

Taking works, as does for any intervening string . But the theorem does not require either construction: the initial and final occurrences of may overlap.

Examples

Overlapping occurrences, not a doubled string

Let , , and .

  • begins and ends with .
  • begins and ends with ; these occurrences share the middle character.
  • Therefore begins and ends with .

Here : transitivity concerns the ends, not concatenating two copies.