HepLean Documentation

Init.Data.Zero

Instances converting between Zero α and OfNat α (nat_lit 0).

@[instance 300]
instance Zero.toOfNat0 {α : Type u_1} [Zero α] :
OfNat α 0
Equations
  • Zero.toOfNat0 = { ofNat := Zero.zero }
@[instance 200]
instance Zero.ofOfNat0 {α : Type u_1} [OfNat α 0] :
Zero α
Equations
  • Zero.ofOfNat0 = { zero := 0 }