String constraints and word equations

TheoremLength-directed Levi's lemma#✓fully proved

Length-directed Levi's lemma: if u is no longer than x, then x splits as u ++ w and the remainders satisfy v = w ++ y. The general form is Mathlib's List.append_eq_append_iff, used directly.

theorem levi_of_le {u v x y : List α} (h : u ++ v = x ++ y)
    (hle : u.length ≤ x.length) : ∃ w, x = u ++ w ∧ v = w ++ y

The dependency explorer needs JavaScript and its graph data.

Download the complete graph data.