Step 1: Start with the given equation.
Given:
\[
\tan(\pi \tan x) = \cot(\pi \cot x).
\]
Recall:
\[
\cot(\theta) = \tan\left( \frac{\pi}{2} - \theta \right).
\]
Thus,
\[
\cot(\pi \cot x) = \tan\left( \frac{\pi}{2} - \pi \cot x \right).
\]
Substituting, the equation becomes:
\[
\tan(\pi \tan x) = \tan\left( \frac{\pi}{2} - \pi \cot x \right).
\]
Step 2: Equate arguments of tangent functions.
Since \( \tan A = \tan B \) implies
\[
A = B + n\pi, \quad n \in \mathbb{Z},
\]
we have:
\[
\pi \tan x = \frac{\pi}{2} - \pi \cot x + n\pi,
\]
or
\[
\pi \tan x + \pi \cot x = \frac{\pi}{2} + n\pi.
\]
Dividing through by \( \pi \):
\[
\tan x + \cot x = \frac{1}{2} + n.
\]
Step 3: Analyze \( \tan x + \cot x \).
We know:
\[
\tan x + \cot x = \frac{\sin^2 x + \cos^2 x}{\sin x \cos x} = \frac{1}{\sin x \cos x}.
\]
Thus,
\[
\tan x + \cot x = \frac{2}{\sin 2x}.
\]
Hence:
\[
\frac{2}{\sin 2x} = \frac{1}{2} + n.
\]
Rearranging:
\[
\sin 2x = \frac{4}{1+2n}.
\]
Step 4: Find possible solutions.
Since \( \sin 2x \) must satisfy \( |\sin 2x| \leq 1 \), the right-hand side must satisfy:
\[
\left| \frac{4}{1+2n} \right| \leq 1.
\]
Let's check:
For \( n = 0 \): \(\frac{4}{1} = 4\) (Not possible).
For \( n = 1 \): \(\frac{4}{3} \approx 1.33\) (Not possible).
For \( n = -1 \): \(\frac{4}{-1} = -4\) (Not possible).
For \( n = -2 \): \(\frac{4}{-3} \approx -1.33\) (Not possible).
For \( n = -3 \): \(\frac{4}{-5} = -0.8\) (possible).
But \( n = -3 \) gives:
\[
\sin 2x = -0.8.
\]
However, recall \( x \in \left(0, \frac{\pi}{2}\right) \), so \( 2x \in (0, \pi) \), and in this interval, \(\sin 2x\) is positive in \((0, \frac{\pi}{2})\) and negative in \((\frac{\pi}{2}, \pi)\).
Thus, \(\sin 2x = -0.8\) would require \( 2x \in \left(\frac{\pi}{2}, \pi\right) \), implying \( x>\frac{\pi}{4} \), but \( x \in (0, \frac{\pi}{2})\), so possible — but need to check carefully:
If \( \sin 2x = -0.8 \), then \( 2x \in (\pi/2, \pi) \).
So \( x \in (\pi/4, \pi/2)\).
Thus solution \( x \in \left(\frac{\pi}{4}, \frac{\pi}{2}\right) \).
But then substitution back into original equation is complicated, and no simple clean value like \(\frac{\pi}{4}\) or \(\frac{\pi}{6}\) satisfies.
Step 5: Conclusion.
Thus, the solution set is empty:
\[
\boxed{\phi}.
\]