
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
In $\triangle ABC$, the sides opposite to angles $A$, $B$, and $C$ are $a$, $b$, and $c$ respectively. Given that $c = a \cos B + 2b \sin^2 \frac{A}{2}$.
(1) Find angle $A$.
(2) If $b=4$ and the length of median drawn to side $AC$ is $\sqrt{7}$, find $a$.

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