Mathlib v3 is deprecated. Go to Mathlib v4

Theorem finset.eq_one_of_prod_eq_one

Modification history