Re-design of CookiExt and Coq soundess proofs