Mathlib v3 is deprecated. Go to Mathlib v4

Theorem real.cos_inj_of_nonneg_of_le_pi

Modification history