# Unbundled semiring and ring homomorphisms (deprecated) #

This file is deprecated, and is no longer imported by anything in mathlib other than other deprecated files, and test files. You should not need to import it.

This file defines predicates for unbundled semiring and ring homomorphisms. Instead of using this file, please use RingHom, defined in Algebra.Hom.Ring, with notation →+*, for morphisms between semirings or rings. For example use φ : A →+* B to represent a ring homomorphism.

## Main Definitions #

IsSemiringHom (deprecated), IsRingHom (deprecated)

## Tags #

IsSemiringHom, IsRingHom

structure IsSemiringHom {α : Type u} {β : Type v} [] [] (f : αβ) :

Predicate for semiring homomorphisms (deprecated -- use the bundled RingHom version).

• map_zero : f 0 = 0

The proposition that f preserves the additive identity.

• map_one : f 1 = 1

The proposition that f preserves the multiplicative identity.

• map_add : ∀ (x y : α), f (x + y) = f x + f y

The proposition that f preserves addition.

• map_mul : ∀ (x y : α), f (x * y) = f x * f y

The proposition that f preserves multiplication.

Instances For
theorem IsSemiringHom.id {α : Type u} [] :

The identity map is a semiring homomorphism.

theorem IsSemiringHom.comp {α : Type u} {β : Type v} [] [] {f : αβ} (hf : ) {γ : Type u_1} [] {g : βγ} (hg : ) :

The composition of two semiring homomorphisms is a semiring homomorphism.

theorem IsSemiringHom.to_isAddMonoidHom {α : Type u} {β : Type v} [] [] {f : αβ} (hf : ) :

A semiring homomorphism is an additive monoid homomorphism.

theorem IsSemiringHom.to_isMonoidHom {α : Type u} {β : Type v} [] [] {f : αβ} (hf : ) :

A semiring homomorphism is a monoid homomorphism.

structure IsRingHom {α : Type u} {β : Type v} [Ring α] [Ring β] (f : αβ) :

Predicate for ring homomorphisms (deprecated -- use the bundled RingHom version).

• map_one : f 1 = 1

The proposition that f preserves the multiplicative identity.

• map_mul : ∀ (x y : α), f (x * y) = f x * f y

The proposition that f preserves multiplication.

• map_add : ∀ (x y : α), f (x + y) = f x + f y

The proposition that f preserves addition.

Instances For
theorem IsRingHom.of_semiring {α : Type u} {β : Type v} [Ring α] [Ring β] {f : αβ} (H : ) :

A map of rings that is a semiring homomorphism is also a ring homomorphism.

theorem IsRingHom.map_zero {α : Type u} {β : Type v} [Ring α] [Ring β] {f : αβ} (hf : ) :
f 0 = 0

Ring homomorphisms map zero to zero.

theorem IsRingHom.map_neg {α : Type u} {β : Type v} [Ring α] [Ring β] {f : αβ} {x : α} (hf : ) :
f (-x) = -f x

theorem IsRingHom.map_sub {α : Type u} {β : Type v} [Ring α] [Ring β] {f : αβ} {x : α} {y : α} (hf : ) :
f (x - y) = f x - f y

Ring homomorphisms preserve subtraction.

theorem IsRingHom.id {α : Type u} [Ring α] :

The identity map is a ring homomorphism.

theorem IsRingHom.comp {α : Type u} {β : Type v} [Ring α] [Ring β] {f : αβ} (hf : ) {γ : Type u_1} [Ring γ] {g : βγ} (hg : ) :

The composition of two ring homomorphisms is a ring homomorphism.

theorem IsRingHom.to_isSemiringHom {α : Type u} {β : Type v} [Ring α] [Ring β] {f : αβ} (hf : ) :

A ring homomorphism is also a semiring homomorphism.

theorem IsRingHom.to_isAddGroupHom {α : Type u} {β : Type v} [Ring α] [Ring β] {f : αβ} (hf : ) :
def RingHom.of {α : Type u} {β : Type v} {rα : } {rβ : } {f : αβ} (hf : ) :
α →+* β

Interpret f : α → β with IsSemiringHom f as a ring homomorphism.

Equations
• = let __src := ; let __src := ; { toMonoidHom := { toOneHom := { toFun := f, map_one' := }, map_mul' := }, map_zero' := , map_add' := }
Instances For
@[simp]
theorem RingHom.coe_of {α : Type u} {β : Type v} {rα : } {rβ : } {f : αβ} (hf : ) :
() = f
theorem RingHom.to_isSemiringHom {α : Type u} {β : Type v} {rα : } {rβ : } (f : α →+* β) :
theorem RingHom.to_isRingHom {α : Type u_1} {γ : Type u_2} [Ring α] [Ring γ] (g : α →+* γ) :