Proofs And Programs About Open Terms