Proofs for sutbstitutions