encoding correctness proof -- dl missing
commenting out some stuff