What is the *p*-value mathematically defined as?

Answer

The probability of observing the data, or more extreme data, if the null hypothesis were actually true.

The p-value measures the compatibility of the data with the null hypothesis; a low p-value suggests the data are surprising under the assumption that there is no effect.

What is the *p*-value mathematically defined as?
SignificanceInterpretationeffectstatistic