Magma_Subset_Product_with_Self
Provedproofwikisubset-products
Let (S, ∘) be a magma and T ⊆ S. Then (T, ∘) is a submagma if and only if T ∘ T ⊆ T (T is closed under the operation).
Preamble
import Mathlib.Algebra.Group.Defs import Mathlib.Data.Set.Basic
Formal statement
theorem Magma_Subset_Product_with_Self {S : Type _} [Mul S] (T : Set S) : (∀ a b : S, a ∈ T → b ∈ T → a * b ∈ T) ↔ (∀ a b : S, a ∈ T → b ∈ T → a * b ∈ T) := by sorrySource