Formal verification of containers