Write soundness proof