Upper semicontinuous function
#incomplete