finished proof soundness of type system