TL;DR No, they don't. But in a specific sense, their continuous-time interpolation will be zero-phase if symmetric about $t=n=0$ (i.e. in periodic extension). In discrete case, however, symmetric will have approximately zero phase - the more samples the better.
All code. References: Wiki, MATLAB, scipy.
To see why no symmetric discrete signal can be zero-phase, begin by considering a fewer-sample random signal; the base sequence throughout the answer will be:
$$
s=[.4, -.4, -.2, .1, -.9, .2],\ N=6
$$
First, symmetric even and odd, formed by concatenating reflections as shown in titles, and their DFTs:
Now; how do we concatenate $s$ such that it is zero-phase? For best results, try to code this yourself. Answers:
below
Not very symmetric. But why does it work?
Rooting the DFT are its complex sinusoidal bases, where the answer lies; for the even, left-right symmetry case, the real part is nonzero - i.e. cosines (recall what DFT coefficients mean). Consider $k=1$, even and odd (of same lengths as above waveforms):
Observe closely. Where is symmetry in either? And in both? For all-cosines to add up to something that is symmetric about some point, they themselves must be symmetric about that point. Where is that point?
Nowhere. There is no complete symmetry; this is an emergent property of the fact that the bases span one full period, i.e. we do not include the right-most $1$ in the cosine, as that overlaps into the next period. Only if we did would we have symmetry.
Then how do we get zero phase? Well, while there is no "clean" symmetry, there is in fact a point of symmetry in a less straightforward sense. Re-examining above plot, try and see if you can attain symmetry by excluding one point. Hint:
Drop left-most point, $n=0$
Answer:
It's exactly at $N / 2$. Note for odd case we drew a line where no sample lies for a visual, but it is consistent with the definition of odd-sampled even symmetry in the question. Further, note that this holds for every other basis up to Nyquist, not just $k=1$.
With this information in mind, the reader is encouraged to revisit zero-phase plots above. Now to restate our findings:
- Even-sampled zero phase: attained by symmetry about $N / 2$, ignoring sample $n=0$. This amounts to two "don't care" points, one at $n=N/2$ and other at $n=0$.
- Odd-sampled zero phase: same, but only one don't-care. Visually this is a flatline as opposed to a spike in even case.
Now we're finished. All of above can be repeated for odd-symmetry case, i.e. pure-imaginary coefficients, or sine basis; the point of symmetry's the same for the same reason it's there for cosine. (However, odd symmetry for a signal is trickier as now the vertical axis is involved, so extra steps are due before concat, but this isn't a problem for zero-mean sines).
What about $n=0$?
Dissenters might point to this; it's readily invalidated by considering the even-length case - reproduced below, and fftshift
-ed to center about $n=0$ on right:
It does work out for the odd-length case, however:
Now as to in what sense $n=0$ is always a point of symmetry; we must leap into the continuous. Recall again the reason why we have the kind of symmetry we have in the discrete case: single period. Now, in continuous, our bases still begin at $0$, but no longer end at $N-1$; instead, we have $t\in[0, N)$ - a semi-open interval, all $t$ from $0$ up to but excluding $N$.
So do we still have a point of symmetry at $N/2$? Yes - but what changes is the interval of symmetry, i.e. what counts as "left" + "right" has now shifted from spanning $[1, N-1]$ to spanning $(0, N)$:
(Lines are actually exactly at $0$ and $N$ but I shifted slightly for clarity). What does this change in regards to $n=0$ symmetry? Well, now we imagine we have a continuous-time signal spanning $[0, N)$, and it's easy to redraw earlier figures with this in mind and see that there is indeed a semi-open interval symmetry about $n=0$.
Above constitutes a fair definition of symmetry about $n=0$. Note, however, that this is not same as discrete, finite symmetry, and a discretely symmetric waveform in time domain about "center" ($N/2$) or generally about $n=0$ (i.e. accounting for odd case) will not have zero phase.
To test for zero phase, apply the exact criterion in the question not to $x$, but to $x[1:]$.