Mechanized proofs for a general approach to dynamic IFC