English
Copying a subsemiring with a new carrier equal to the old one yields the same subsemiring.
Русский
Копирование подпол semiring с новым носителем, равным старому, даёт тот же самый подпол semiring.
LaTeX
$$S.copy(s, hs) = S, where hs : s = ↑S$$
Lean4
/-- Copy of a subsemiring with a new `carrier` equal to the old one. Useful to fix definitional
equalities. -/
@[simps coe toSubmonoid]
protected def copy (S : Subsemiring R) (s : Set R) (hs : s = ↑S) : Subsemiring R :=
{ S.toAddSubmonoid.copy s hs, S.toSubmonoid.copy s hs with carrier := s }