Section Completeness.
Fixpoint size (s: exp X) :=
match s with
| var x => 0
| const x => 0
| lambda s => S (size s)
| app s1 s2 => S(size s1 + size s2)
end.

Lemma size_subst tau s:
size (tau • s) = size s + Sum (map (tau >> size) (vars s)).