We characterize the invertible matrices over a class of semirings such that the set of additively invertible elements is equal to the set of nilpotent elements. We achieve this by studying the liftings of the orthogonal sums of elements that are "almost idempotent" to those that are idempotent. Finally, we show an application of the obtained results to calculate the diameter of the commuting graph of the group of invertible matrices over the semirings in question.
展开▼