Documentation

Init.Data.Repr

class Repr (α : Type u) :
Type u
Instances
@[inline]
abbrev repr {α : Type u_1} [inst : Repr α] (a : α) :
Equations
@[inline]
abbrev reprStr {α : Type u_1} [inst : Repr α] (a : α) :
Equations
@[inline]
abbrev reprArg {α : Type u_1} [inst : Repr α] (a : α) :
Equations
instance instReprIdType {α : Type u_1} [inst : Repr α] :
Repr (id α)
Equations
instance instReprId {α : Type u_1} [inst : Repr α] :
Repr (Id α)
Equations
instance instReprBool :
Equations
Equations
instance instReprDecidable {p : Prop} :
Equations
Equations
instance instReprULift {α : Type u_1} [inst : Repr α] :
Repr (ULift α)
Equations
instance instReprUnit :
Equations
instance instReprOption {α : Type u_1} [inst : Repr α] :
Equations
instance instReprSum {α : Type u_1} {β : Type u_2} [inst : Repr α] [inst : Repr β] :
Repr (α β)
Equations
class ReprTuple (α : Type u) :
Type u
Instances
instance instReprTuple {α : Type u_1} [inst : Repr α] :
Equations
  • instReprTuple = { reprTuple := fun a xs => repr a :: xs }
instance instReprTupleProd {α : Type u_1} {β : Type u_2} [inst : Repr α] [inst : ReprTuple β] :
ReprTuple (α × β)
Equations
  • instReprTupleProd = { reprTuple := fun x x_1 => match x, x_1 with | (a, b), xs => reprTuple b (repr a :: xs) }
instance instReprProd {α : Type u_1} {β : Type u_2} [inst : Repr α] [inst : ReprTuple β] :
Repr (α × β)
Equations
instance instReprSigma {α : Type u_1} {β : αType v} [inst : Repr α] [s : (x : α) → Repr (β x)] :
Repr (Sigma β)
Equations
instance instReprSubtype {α : Type u_1} {p : αProp} [inst : Repr α] :
Equations
  • instReprSubtype = { reprPrec := fun s prec => reprPrec s.val prec }
def Nat.digitChar (n : Nat) :
Equations
def Nat.toDigitsCore (base : Nat) :
NatNatList CharList Char
Equations
def Nat.toDigits (base : Nat) (n : Nat) :
Equations
def Nat.repr (n : Nat) :
Equations
Equations
partial def Nat.toSuperDigitsAux :
instance instReprNat :
Equations
def Int.repr :
Equations
instance instReprInt :
Equations
def charToHex (c : Char) :
Equations
Equations
def Char.quote (c : Char) :
Equations
instance instReprChar :
Equations
def Char.repr (c : Char) :
Equations
Equations
Equations
Equations
Equations
instance instReprFin (n : Nat) :
Repr (Fin n)
Equations
Equations
Equations
Equations
Equations
Equations
instance instReprList {α : Type u_1} [inst : Repr α] :
Repr (List α)
Equations
instance instReprList_1 {α : Type u_1} [inst : Repr α] [inst : ReprAtom α] :
Repr (List α)
Equations
Equations
Equations