(* A composition of [traverse] with [traverse_var] simplifies to a single call to [traverse]. In other words, composing a substitution and a (not necessarily bijective) renaming yields another substitution. *)

(* Specifications: *)
Lemma traverse_traverse_var:
forall `{Var V, Traverse V V, Traverse V T},
@TraverseFunctorial V _ T _ ->
@TraverseRelative V T _ -> (* TraverseExtensional *)
@TraverseIdentifiesVar V _ _ ->
forall f g t l,
traverse g l (traverse_var f l t) =
traverse (fun l x => g l (f l x)) l t.