Mathlib v3 is deprecated. Go to Mathlib v4

Theorem set.partially_well_ordered_on.iff_not_exists_is_min_bad_seq

Modification history