Confusion about dot convention in an ideal transformer
Note that in case (a) the ratio of the currents is negative while in (b) it is positive but the secondary current arrows are reversed. They both, effectively, say the same thing.
I've never seen it expressed as in (a) but I can see that it may make some sense to present an ideal transformer with current in from both sides as neither side is then assumed to be "input" or "output" but both can be inputs, etc.
(b) is the normal way of thinking in most electronics applications. You may find that (a) has its uses in electrical utility grid transformers where power can flow either direction to suit generation / demand requirements.
(c) and (d) should be fairly obvious inversions of (a) and (b) respectively.
(b) is the conventional choice, with both \$i_1\$ and \$i_2\$ positive.
If you use (a), then one of the currents has to be negative, because the power flowing in one side has to equal the power flowing out the other.
The way you phrased the question is a bit confusing, so I'll just state how I think about the dot convention rule:
The voltage waveform on a dotted terminal is always in phase the voltage on another dotted terminal.
This is true only when comparing voltages to voltages - don't bring current into the mix. The phase relationship between voltage and current will depend on what else is attached to the transformer.
Also note that the instantaneous voltage is irrelevant - transformers only respond to time-varying voltages and currents, so it's best to think of any signal as a sine wave, not a voltage at a particular moment. If you need to focus on a particular moment, use dV/dt or di/dt.