\(x=\dfrac{1}{\sqrt{2}}\left(\sqrt{4+2\sqrt{3}}+\sqrt{4-2\sqrt{3}}\right)\)
\(=\dfrac{1}{\sqrt{2}}\left(\sqrt{\left(\sqrt{3}+1\right)^2}+\sqrt{\left(\sqrt{3}-1\right)^2}\right)=\sqrt{6}\)
\(y=\sqrt{\left(\sqrt{6}-1\right)^2}=\sqrt{6}-1\)
\(\Rightarrow x-y=1\Rightarrow P=1\)
\(B=x-2020-\sqrt{x-2020}+\dfrac{1}{4}+\dfrac{8079}{4}\)
\(B=\left(\sqrt{x-2020}-\dfrac{1}{2}\right)^2+\dfrac{8079}{4}\ge\dfrac{8079}{4}\)
\(B_{min}=\dfrac{8079}{4}\) khi \(x=\dfrac{8081}{4}\)