Polymorphic functions with set-theoretic types_ Part 2_ Local type inference and type reconstruction