
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
Determine the value of the constant $m$ if the function $f(x) = \sqrt{3}\sin(2x) + 2\cos^2(x) + m$ attains its maximum value of 6 on the interval $[0, \frac{\pi}{2}]$, and find the minimum value of this function for $x \in \mathbb{R}$ along with the corresponding set of values of $x$.

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