mathlib documentation

algebra.ring.ulift

ulift instances for ring #

This file defines instances for ring, semiring and related structures on ulift types.

(Recall ulift α is just a "copy" of a type α in a higher universe.)

We also provide ulift.ring_equiv : ulift R ≃+* R.

@[protected, instance]
def ulift.mul_zero_class {α : Type u} [mul_zero_class α] :
Equations
@[protected, instance]
def ulift.distrib {α : Type u} [distrib α] :
Equations
def ulift.ring_equiv {α : Type u} [non_unital_non_assoc_semiring α] :
ulift α ≃+* α

The ring equivalence between ulift α and α.

Equations
@[protected, instance]
def ulift.has_rat_cast {α : Type u} [has_rat_cast α] :
Equations
@[simp]
theorem ulift.rat_cast_down {α : Type u} [has_rat_cast α] (n : ) :