Mathlib v3 is deprecated. Go to Mathlib v4

Theorem subsemigroup.not_mem_of_not_mem_closure

Modification history