Noncommutative latices