(* ---------------------------------------------------------------------------- *)
(* [length e] should be viewed as an upper bound on the true length of the environment [e], since there may be useless [None] entries at the end. We are careful to always work with hypotheses and goals of the form [length e <= k]. *)

Lemma length_monotonic:
forall A (e : env A) k1 k2,
length e <= k1 ->
k1 <= k2 ->
length e <= k2.