Test_for_Submonoid
Provedmonoidsproofwiki
To show that (T, *) is a submonoid of a monoid (S, *), it suffices to show T ⊆ S, T is closed, and T has an identity.
Preamble
import Mathlib.Algebra.Group.Submonoid.Basic
Formal statement
theorem Test_for_Submonoid {M : Type _} [Monoid M] (S : Submonoid M) : (↑S : Set M) ⊆ Set.univ ∧ (1 : M) ∈ (S : Set M) := by sorrySource