ULift
instances for groups and monoids #
This file defines instances for group, monoid, semigroup and related structures on ULift
types.
(Recall ULift α
is just a "copy" of a type α
in a higher universe.)
We also provide MulEquiv.ulift : ULift R ≃* R
(and its additive analogue).
Equations
- ULift.zero = { zero := { down := 0 } }
Equations
- ULift.add = { add := fun (f g : ULift.{?u.3, ?u.4} α) => { down := f.down + g.down } }
Equations
- ULift.mul = { mul := fun (f g : ULift.{?u.3, ?u.4} α) => { down := f.down * g.down } }
@[simp]
@[simp]
Equations
- ULift.sub = { sub := fun (f g : ULift.{?u.3, ?u.4} α) => { down := f.down - g.down } }
Equations
- ULift.div = { div := fun (f g : ULift.{?u.3, ?u.4} α) => { down := f.down / g.down } }
@[simp]
@[simp]
Equations
- ULift.neg = { neg := fun (f : ULift.{?u.3, ?u.4} α) => { down := -f.down } }
Equations
- ULift.inv = { inv := fun (f : ULift.{?u.3, ?u.4} α) => { down := f.down⁻¹ } }
Equations
- ULift.vadd = { vadd := fun (n : α) (x : ULift.{?u.4, ?u.5} β) => { down := n +ᵥ x.down } }
Equations
- ULift.smul = { smul := fun (n : α) (x : ULift.{?u.4, ?u.5} β) => { down := n • x.down } }
@[simp]
@[simp]
Equations
- ULift.pow = { pow := fun (x : ULift.{?u.4, ?u.6} α) (n : β) => { down := x.down ^ n } }
@[simp]
Equations
- ULift.semigroup = Function.Injective.semigroup ⇑MulEquiv.ulift ⋯ ⋯
Equations
- ULift.addSemigroup = Function.Injective.addSemigroup ⇑Equiv.ulift ⋯ ⋯
Equations
- ULift.addCommSemigroup = Function.Injective.addCommSemigroup ⇑Equiv.ulift ⋯ ⋯
Equations
- ULift.commSemigroup = Function.Injective.commSemigroup ⇑Equiv.ulift ⋯ ⋯
Equations
- ULift.addZeroClass = Function.Injective.addZeroClass ⇑Equiv.ulift ⋯ ⋯ ⋯
Equations
- ULift.mulOneClass = Function.Injective.mulOneClass ⇑Equiv.ulift ⋯ ⋯ ⋯
Equations
- ULift.addMonoid = Function.Injective.addMonoid ⇑Equiv.ulift ⋯ ⋯ ⋯ ⋯
Equations
- ULift.monoid = Function.Injective.monoid ⇑Equiv.ulift ⋯ ⋯ ⋯ ⋯
Equations
- ULift.addCommMonoid = Function.Injective.addCommMonoid ⇑Equiv.ulift ⋯ ⋯ ⋯ ⋯
Equations
- ULift.commMonoid = Function.Injective.commMonoid ⇑Equiv.ulift ⋯ ⋯ ⋯ ⋯
@[simp]
theorem
ULift.up_ofNat
{α : Type u}
[NatCast α]
(n : ℕ)
[n.AtLeastTwo]
:
{ down := OfNat.ofNat n } = OfNat.ofNat n
@[simp]
theorem
ULift.down_ofNat
{α : Type u}
[NatCast α]
(n : ℕ)
[n.AtLeastTwo]
:
(OfNat.ofNat n).down = OfNat.ofNat n
Equations
- ULift.addMonoidWithOne = AddMonoidWithOne.mk ⋯ ⋯
Equations
- ULift.addCommMonoidWithOne = AddCommMonoidWithOne.mk ⋯
Equations
- ULift.subNegAddMonoid = Function.Injective.subNegMonoid ⇑Equiv.ulift ⋯ ⋯ ⋯ ⋯ ⋯ ⋯ ⋯
Equations
- ULift.divInvMonoid = Function.Injective.divInvMonoid ⇑Equiv.ulift ⋯ ⋯ ⋯ ⋯ ⋯ ⋯ ⋯
Equations
- ULift.addGroup = Function.Injective.addGroup ⇑Equiv.ulift ⋯ ⋯ ⋯ ⋯ ⋯ ⋯ ⋯
Equations
- ULift.group = Function.Injective.group ⇑Equiv.ulift ⋯ ⋯ ⋯ ⋯ ⋯ ⋯ ⋯
Equations
- ULift.addCommGroup = Function.Injective.addCommGroup ⇑Equiv.ulift ⋯ ⋯ ⋯ ⋯ ⋯ ⋯ ⋯
Equations
- ULift.commGroup = Function.Injective.commGroup ⇑Equiv.ulift ⋯ ⋯ ⋯ ⋯ ⋯ ⋯ ⋯
Equations
- ULift.addGroupWithOne = AddGroupWithOne.mk ⋯ SubNegMonoid.zsmul ⋯ ⋯ ⋯ ⋯ ⋯ ⋯
Equations
- ULift.addCommGroupWithOne = AddCommGroupWithOne.mk ⋯ ⋯ ⋯ ⋯
Equations
- ULift.addLeftCancelSemigroup = Function.Injective.addLeftCancelSemigroup ⇑Equiv.ulift ⋯ ⋯
Equations
- ULift.leftCancelSemigroup = Function.Injective.leftCancelSemigroup ⇑Equiv.ulift ⋯ ⋯
Equations
- ULift.addRightCancelSemigroup = Function.Injective.addRightCancelSemigroup ⇑Equiv.ulift ⋯ ⋯
Equations
- ULift.rightCancelSemigroup = Function.Injective.rightCancelSemigroup ⇑Equiv.ulift ⋯ ⋯
Equations
- ULift.addLeftCancelMonoid = Function.Injective.addLeftCancelMonoid ⇑Equiv.ulift ⋯ ⋯ ⋯ ⋯
Equations
- ULift.leftCancelMonoid = Function.Injective.leftCancelMonoid ⇑Equiv.ulift ⋯ ⋯ ⋯ ⋯
Equations
- ULift.addRightCancelMonoid = Function.Injective.addRightCancelMonoid ⇑Equiv.ulift ⋯ ⋯ ⋯ ⋯
Equations
- ULift.rightCancelMonoid = Function.Injective.rightCancelMonoid ⇑Equiv.ulift ⋯ ⋯ ⋯ ⋯
Equations
- ULift.addCancelMonoid = Function.Injective.addCancelMonoid ⇑Equiv.ulift ⋯ ⋯ ⋯ ⋯
Equations
- ULift.cancelMonoid = Function.Injective.cancelMonoid ⇑Equiv.ulift ⋯ ⋯ ⋯ ⋯
Equations
- ULift.addCancelCommMonoid = Function.Injective.addCancelCommMonoid ⇑Equiv.ulift ⋯ ⋯ ⋯ ⋯
Equations
- ULift.cancelCommMonoid = Function.Injective.cancelCommMonoid ⇑Equiv.ulift ⋯ ⋯ ⋯ ⋯
Equations
- ⋯ = ⋯