Remark maxLemma :
forall a b c d : nat, a <= b -> c <= d -> max a c <= max b d.
Remark maxLemma2 :
forall a b : list nat, fold_right max 0 a <= fold_right max 0 (a ++ b).
Remark maxLemma3 :
forall a b : list nat, fold_right max 0 b <= fold_right max 0 (a ++ b).
Remark maxApp :
forall a b : list nat,
{fold_right max 0 (a ++ b) = fold_right max 0 a} +
{fold_right max 0 (a ++ b) = fold_right max 0 b}.

Lemma ReplaceTermTermSub :
forall (t : fol.Term L) (v w s2 : nat),
ReplaceTermTerm (codeTerm (substituteTerm L t v (var w))) s2 =
ReplaceTermTerm (codeTerm t) s2.