English
Various compatibility statements ensuring SubalgebraClass.val behaves as an algebra homomorphism.
Русский
Различные совместимости, обеспечивающие поведение SubalgebraClass.val как алгебра-гомоморфизм.
LaTeX
$$$\text{val}$ is an algebra homomorphism from S to A$$
Lean4
/-- Embedding of a subalgebra into the algebra, as an algebra homomorphism. -/
def val (s : S) : s →ₐ[R] A :=
{ SubsemiringClass.subtype s,
SMulMemClass.subtype s with
toFun := (↑)
commutes' := fun _ ↦ rfl }