∀ {R : Type uR} {A₁ : Type uA₁} {A₂ : Type uA₂} [inst : CommSemiring R] [inst_1 : Semiring A₁] [inst_2 : Semiring A₂]
  [inst_3 : Algebra R A₁] [inst_4 : Algebra R A₂] {f f_1 : A₁ ≃+* A₂} (e_f : f = f_1)
  (hf : ∀ (x : R), f ((algebraMap R A₁) x) = (algebraMap R A₂) x), AlgEquiv.ofRingEquiv hf = AlgEquiv.ofRingEquiv ⋯