Documentation

Init.Data.Repr

class Repr (α : Type u) :
Instances
    @[inline, reducible]
    abbrev repr {α : Type u_1} [Repr α] (a : α) :
    Instances For
      @[inline, reducible]
      abbrev reprStr {α : Type u_1} [Repr α] (a : α) :
      Instances For
        @[inline, reducible]
        abbrev reprArg {α : Type u_1} [Repr α] (a : α) :
        Instances For
          class ReprAtom (α : Type u) :

            Auxiliary class for marking types that should be considered atomic by Repr methods. We use it at Repr (List α) to decide whether bracketFill should be used or not.

            Instances
              instance instReprIdType {α : Type u_1} [Repr α] :
              Repr (id α)
              instance instReprId {α : Type u_1} [Repr α] :
              Repr (Id α)
              Instances For
                instance instReprULift {α : Type u_1} [Repr α] :
                Repr (ULift α)
                def Option.repr {α : Type u_1} [Repr α] :
                Instances For
                  instance instReprOption {α : Type u_1} [Repr α] :
                  def Sum.repr {α : Type u_1} {β : Type u_2} [Repr α] [Repr β] :
                  α βNatLean.Format
                  Instances For
                    instance instReprSum {α : Type u_1} {β : Type u_2} [Repr α] [Repr β] :
                    Repr (α β)
                    class ReprTuple (α : Type u) :
                    Instances
                      instance instReprTuple {α : Type u_1} [Repr α] :
                      instance instReprTupleProd {α : Type u_1} {β : Type u_2} [Repr α] [ReprTuple β] :
                      ReprTuple (α × β)
                      def Prod.repr {α : Type u_1} {β : Type u_2} [Repr α] [ReprTuple β] :
                      α × βNatLean.Format
                      Instances For
                        instance instReprProd {α : Type u_1} {β : Type u_2} [Repr α] [ReprTuple β] :
                        Repr (α × β)
                        instance instReprSigma {α : Type u_1} {β : αType v} [Repr α] [(x : α) → Repr (β x)] :
                        Repr (Sigma β)
                        instance instReprSubtype {α : Type u_1} {p : αProp} [Repr α] :
                        Instances For
                          def Nat.toDigitsCore (base : Nat) :
                          NatNatList CharList Char
                          Equations
                          Instances For
                            def Nat.toDigits (base : Nat) (n : Nat) :
                            Instances For
                              def Nat.repr (n : Nat) :
                              Instances For
                                Instances For
                                  Instances For
                                    Instances For
                                      Instances For
                                        Instances For
                                          Instances For
                                            Instances For
                                              def Char.repr (c : Char) :
                                              Instances For
                                                Instances For
                                                  instance instReprFin (n : Nat) :
                                                  Repr (Fin n)
                                                  def List.repr {α : Type u_1} [Repr α] (a : List α) (n : Nat) :
                                                  Instances For
                                                    instance instReprList {α : Type u_1} [Repr α] :
                                                    Repr (List α)
                                                    def List.repr' {α : Type u_1} [Repr α] [ReprAtom α] (a : List α) (n : Nat) :
                                                    Instances For
                                                      instance instReprList_1 {α : Type u_1} [Repr α] [ReprAtom α] :
                                                      Repr (List α)