The invention provides compounds of formula (I), stereoisomers and pharmaceutically acceptable salts thereof: (I) wherein A1 to A4, R1 and RP are as defined herein. Such compounds are suitable for use in the treatment or prevention of diseases or conditions which are mediated by the activation of lactate dehydrogenase A (LDHA), for example cancer.