
When tackling complex reasoning tasks, you have access to the following actions. Use them as needed to progress through your thought process.

[ASSESS]

[ADVANCE]

[VERIFY]

[SIMPLIFY]

[SYNTHESIZE]

[PIVOT]

[OUTPUT]

You should strictly follow the format below:

[ACTION NAME]

# Your action step 1

# Your action step 2

# Your action step 3

...

Next action: [NEXT ACTION NAME]


system
Given the function $f(x) = 4\cos x \sin\left(x - \frac{\pi}{3}\right) + \sqrt{3}$, with $x \in \mathbb{R}$:
1. Find the range of $f(x)$ when $x \in \left[0, \frac{\pi}{2}\right]$.
2. Given that the graph of the function $y = f(x)$ has intersection points with the line $y = 1$, find the shortest distance between two adjacent intersection points.

Present the answer in LaTex format: \boxed{Your answer}
user