My book defines Electrode Potential for a Galvanic Cell as follows:
A potential difference that develops between the electrode and the electrolyte is called Electrode Potential
$$E= V_{electrode} - V_{electrolyte}\tag1$$
It further defines cell potential as:
The potential difference between the two electrodes of a galvanic cell is called Cell Potential.
Mathematically, I interpret it as $$E_{Cell} = V_{electrode,anode} - V_{electrode,cathode}\tag2$$
However my book further mentions that
The cell potential is the difference between the electrode potential of the anode and cathode.
I interpret this as: $$E_{Cell} = E_{anode} - E_{cathode}$$ From (1) $$E_{cell}=(V_{electrode,anode} - V_{electrolyte,anode} )- (V_{electrode,cathode} - V_{electrolyte,cathode})\tag3$$ To keep the above consistent with (2), $$V_{electrolyte,anode} = V_{electrolyte,cathode}\tag4$$
I find (4) illogical as there is no basis for the two electrolytes to be at same potential.
What is going on here?