File: .lake/packages/lean4/src/lean/Init/Data/Repr.lean

full_name: Repr
code: /--
A typeclass that specifies the standard way of turning values of some type into `Format`.

When rendered this `Format` should be as close as possible to something that can be parsed as the
input value.
-/
class Repr (α : Type u) where
  /--
  Turn a value of type `α` into `Format` at a given precedence. The precedence value can be used
  to avoid parentheses if they are not necessary.
  -/
  reprPrec : α → Nat → Format
goal: Type u

full_name: Repr.reprPrec
code: /--
A typeclass that specifies the standard way of turning values of some type into `Format`.

When rendered this `Format` should be as close as possible to something that can be parsed as the
input value.
-/
class Repr (α : Type u) where
  /--
  Turn a value of type `α` into `Format` at a given precedence. The precedence value can be used
  to avoid parentheses if they are not necessary.
  -/
  reprPrec : α → Nat → Format
goal: α → Nat → Std.Format

full_name: repr
code: /--
Turn `a` into `Format` using its `Repr` instance. The precedence level is initially set to 0.
-/
abbrev repr [Repr α] (a : α) : Format 
goal: Std.Format

full_name: reprStr
code: abbrev reprStr [Repr α] (a : α) : String 
goal: String

full_name: reprArg
code: abbrev reprArg [Repr α] (a : α) : Format 
goal: Std.Format

full_name: ReprAtom
code: /-- 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. -/
class ReprAtom (α : Type u)
goal: Type

full_name: instReprId
code: instance [Repr α] : Repr (id α) 
goal: Repr (id α)

full_name: instReprId_1
code: instance [Repr α] : Repr (Id α) 
goal: Repr (Id α)

full_name: instReprBool
code: instance : Repr Bool 
goal: Repr Bool

full_name: Repr.addAppParen
code: def Repr.addAppParen (f : Format) (prec : Nat) : Format 
goal: Std.Format

full_name: instReprDecidable
code: instance : Repr (Decidable p) 
goal: Repr (Decidable p)

full_name: instReprPUnit
code: instance : Repr PUnit.{u+1} 
goal: Repr PUnit

full_name: instReprULift
code: instance [Repr α] : Repr (ULift.{v} α) 
goal: Repr (ULift α)

full_name: instReprUnit
code: instance : Repr Unit 
goal: Repr Unit

full_name: Option.repr
code: protected def Option.repr [Repr α] : Option α → Nat → Format
  
goal: Option α → Nat → Std.Format

full_name: instReprOption
code: instance [Repr α] : Repr (Option α) 
goal: Repr (Option α)

full_name: Sum.repr
code: protected def Sum.repr [Repr α] [Repr β] : Sum α β → Nat → Format
  
goal: α ⊕ β → Nat → Std.Format

full_name: instReprSum
code: instance [Repr α] [Repr β] : Repr (Sum α β) 
goal: Repr (α ⊕ β)

full_name: ReprTuple.reprTuple
code: class ReprTuple (α : Type u) where
  reprTuple : α → List Format → List Format
goal: α → List Std.Format → List Std.Format

full_name: ReprTuple
code: class ReprTuple (α : Type u) where
  reprTuple : α → List Format → List Format
goal: Type u

full_name: instReprTupleOfRepr
code: instance [Repr α] : ReprTuple α 
goal: ReprTuple α

full_name: instReprTupleProdOfRepr
code: instance [Repr α] [ReprTuple β] : ReprTuple (α × β) 
goal: ReprTuple (α × β)

full_name: Prod.repr
code: protected def Prod.repr [Repr α] [ReprTuple β] : α × β → Nat → Format
  
goal: α × β → Nat → Std.Format

full_name: instReprProdOfReprTuple
code: instance [Repr α] [ReprTuple β] : Repr (α × β) 
goal: Repr (α × β)

full_name: instReprSigma
code: instance {β : α → Type v} [Repr α] [(x : α) → Repr (β x)] : Repr (Sigma β) 
goal: Repr (Sigma β)

full_name: instReprSubtype
code: instance {p : α → Prop} [Repr α] : Repr (Subtype p) 
goal: Repr (Subtype p)

full_name: Nat.digitChar
code: def digitChar (n : Nat) : Char 
goal: Char

full_name: Nat.toDigitsCore
code: def toDigitsCore (base : Nat) : Nat → Nat → List Char → List Char
  
goal: Nat → Nat → List Char → List Char

full_name: Nat.toDigits
code: def toDigits (base : Nat) (n : Nat) : List Char 
goal: List Char

full_name: USize.repr
code: @[extern "lean_string_of_usize"]
protected def _root_.USize.repr (n : @& USize) : String 
goal: String

full_name: _private.«.lake».packages.lean4.src.lean.Init.Data.Repr.0.Nat.reprArray
code: /-- We statically allocate and memoize reprs for small natural numbers. -/
private def reprArray : Array String 
goal: Array String

full_name: _private.«.lake».packages.lean4.src.lean.Init.Data.Repr.0.Nat.reprFast
code: private def reprFast (n : Nat) : String 
goal: String

full_name: Nat.repr
code: @[implemented_by reprFast]
protected def repr (n : Nat) : String 
goal: String

full_name: Nat.superDigitChar
code: def superDigitChar (n : Nat) : Char 
goal: Char

full_name: Nat.toSuperDigitsAux
code: partial def toSuperDigitsAux : Nat → List Char → List Char
  
goal: Nat → List Char → List Char

full_name: Nat.toSuperDigits
code: def toSuperDigits (n : Nat) : List Char 
goal: List Char

full_name: Nat.toSuperscriptString
code: def toSuperscriptString (n : Nat) : String 
goal: String

full_name: Nat.subDigitChar
code: def subDigitChar (n : Nat) : Char 
goal: Char

full_name: Nat.toSubDigitsAux
code: partial def toSubDigitsAux : Nat → List Char → List Char
  
goal: Nat → List Char → List Char

full_name: Nat.toSubDigits
code: def toSubDigits (n : Nat) : List Char 
goal: List Char

full_name: Nat.toSubscriptString
code: def toSubscriptString (n : Nat) : String 
goal: String

full_name: instReprNat
code: instance : Repr Nat 
goal: Repr Nat

full_name: Int.repr
code: protected def Int.repr : Int → String
    
goal: Int → String

full_name: instReprInt
code: instance : Repr Int 
goal: Repr Int

full_name: hexDigitRepr
code: def hexDigitRepr (n : Nat) : String 
goal: String

full_name: Char.quoteCore
code: def Char.quoteCore (c : Char) : String 
goal: String

full_name: Char.quoteCore.smallCharToHex
code: def Char.quoteCore (c : Char) : String 
goal: String

full_name: Char.quote
code: def Char.quote (c : Char) : String 
goal: String

full_name: instReprChar
code: instance : Repr Char 
goal: Repr Char

full_name: Char.repr
code: protected def Char.repr (c : Char) : String 
goal: String

full_name: String.quote
code: def String.quote (s : String) : String 
goal: String

full_name: instReprString
code: instance : Repr String 
goal: Repr String

full_name: instReprPos
code: instance : Repr String.Pos 
goal: Repr String.Pos

full_name: instReprSubstring
code: instance : Repr Substring 
goal: Repr Substring

full_name: instReprIterator
code: instance : Repr String.Iterator 
goal: Repr String.Iterator

full_name: instReprFin
code: instance (n : Nat) : Repr (Fin n) 
goal: Repr (Fin n)

full_name: instReprUInt8
code: instance : Repr UInt8 
goal: Repr UInt8

full_name: instReprUInt16
code: instance : Repr UInt16 
goal: Repr UInt16

full_name: instReprUInt32
code: instance : Repr UInt32 
goal: Repr UInt32

full_name: instReprUInt64
code: instance : Repr UInt64 
goal: Repr UInt64

full_name: instReprUSize
code: instance : Repr USize 
goal: Repr USize

full_name: List.repr
code: protected def List.repr [Repr α] (a : List α) (n : Nat) : Format 
goal: Std.Format

full_name: instReprList
code: instance [Repr α] : Repr (List α) 
goal: Repr (List α)

full_name: List.repr'
code: protected def List.repr' [Repr α] [ReprAtom α] (a : List α) (n : Nat) : Format 
goal: Std.Format

full_name: instReprListOfReprAtom
code: instance [Repr α] [ReprAtom α] : Repr (List α) 
goal: Repr (List α)

full_name: instReprAtomBool
code: instance : ReprAtom Bool   
goal: ReprAtom Bool

full_name: instReprAtomNat
code: instance : ReprAtom Nat    
goal: ReprAtom Nat

full_name: instReprAtomInt
code: instance : ReprAtom Int    
goal: ReprAtom Int

full_name: instReprAtomChar
code: instance : ReprAtom Char   
goal: ReprAtom Char

full_name: instReprAtomString
code: instance : ReprAtom String 
goal: ReprAtom String

full_name: instReprAtomUInt8
code: instance : ReprAtom UInt8  
goal: ReprAtom UInt8

full_name: instReprAtomUInt16
code: instance : ReprAtom UInt16 
goal: ReprAtom UInt16

full_name: instReprAtomUInt32
code: instance : ReprAtom UInt32 
goal: ReprAtom UInt32

full_name: instReprAtomUInt64
code: instance : ReprAtom UInt64 
goal: ReprAtom UInt64

full_name: instReprAtomUSize
code: instance : ReprAtom USize  
goal: ReprAtom USize

full_name: instReprSourceInfo
code: Repr
goal: Repr Lean.SourceInfo