HepLean Documentation

Mathlib.Algebra.Group.ZeroOne

Typeclass One #

Zero has already been defined in Lean.

class One (α : Type u) :
  • one : α
Instances
    @[instance 300]
    instance One.toOfNat1 {α : Type u_1} [One α] :
    OfNat α 1
    Equations
    • One.toOfNat1 = { ofNat := One.one }
    @[instance 200]
    instance One.ofOfNat1 {α : Type u_1} [OfNat α 1] :
    One α
    Equations
    • One.ofOfNat1 = { one := 1 }