An ideal open-loop comparator chooses a rail from exact input voltages and a stated rule. Exact arithmetic here means exact results for the stated model inputs; measured inputs still carry uncertainty and significant-figure limits.
highlighted = computed this step
Greater plus input selects the high rail
The plus input is 8 volts and the minus input is 6 volts, so the ideal comparator output is 12 volts.
8V>6V⇒Vout=12V
Lower plus input selects the low rail
When the plus input is 4 volts and the minus input is 6 volts, the output is 0 volts. Linear op-amp gain and feedback are deferred.