Documentation

Init.SizeOf

class SizeOf (α : Sort u) :
Sort (max 1 u)
  • sizeOf : αNat
Instances
def default.sizeOf (α : Sort u) :
αNat
Equations
instance instSizeOf (α : Sort u) :
Equations
@[simp]
theorem sizeOf_default {α : Sort u_1} (n : α) :
sizeOf n = 0
Equations
@[simp]
theorem sizeOf_nat (n : Nat) :
sizeOf n = n
noncomputable instance instSizeOfName :
Equations