Mathlib v3 is deprecated. Go to Mathlib v4

Theorem module.finite.iff_add_monoid_fg

Modification history