Mathlib v3 is deprecated. Go to Mathlib v4

Theorem set.partially_well_ordered_on.iff_forall_not_is_bad_seq

Modification history