auxiliary adjective; negative form expressing emphatic certainty or conviction (formal register)
Analysis. 違う (to differ, to be wrong) + ない (negation), creating a double negative that becomes affirmative: 'it cannot be otherwise' → 'it must be'
Dictionary entry by Claude.
Lite mode — plain HTML for e-readers and old browsers. Full version