Safe Functional Systems Through Integrity Types and Verified Assembly