Documentation
Init
.
Data
.
ToString
.
Basic
Search
Google site search
Init
.
Data
.
ToString
.
Basic
source
Imports
Init.Control.Id
Init.Control.Option
Init.Data.Repr
Init.Data.Format.Basic
Init.Data.Int.Basic
Init.Data.Nat.Div
Init.Data.String.Basic
Init.Data.UInt.Basic
Imported by
ToString
instToStringIdType
instToStringId
instToStringString
instToStringSubstring
instToStringIterator
instToStringBool
instToStringDecidable
List
.
toString
instToStringList
instToStringPUnit
instToStringULift
instToStringUnit
instToStringNat
instToStringPos
instToStringInt
instToStringChar
instToStringFin
instToStringUInt8
instToStringUInt16
instToStringUInt32
instToStringUInt64
instToStringUSize
instToStringFormat
addParenHeuristic
instToStringOption
instToStringSum
instToStringProd
instToStringSigma
instToStringSubtype
String
.
toInt?
String
.
isInt
String
.
toInt!
instToStringExcept
instReprExcept
source
class
ToString
(α :
Type
u)
:
Type
u
toString :
α
→
String
Instances
source
instance
instToStringIdType
{α :
Type
u_1}
[
ToString
α
]
:
ToString
(
id
α
)
source
instance
instToStringId
{α :
Type
u_1}
[
ToString
α
]
:
ToString
(
Id
α
)
source
instance
instToStringString
:
ToString
String
source
instance
instToStringSubstring
:
ToString
Substring
source
instance
instToStringIterator
:
ToString
String.Iterator
source
instance
instToStringBool
:
ToString
Bool
source
instance
instToStringDecidable
{p :
Prop
}
:
ToString
(
Decidable
p
)
source
def
List
.
toString
{α :
Type
u_1}
[
ToString
α
]
:
List
α
→
String
Instances For
source
instance
instToStringList
{α :
Type
u}
[
ToString
α
]
:
ToString
(
List
α
)
source
instance
instToStringPUnit
:
ToString
PUnit
source
instance
instToStringULift
{α :
Type
u}
[
ToString
α
]
:
ToString
(
ULift
α
)
source
instance
instToStringUnit
:
ToString
Unit
source
instance
instToStringNat
:
ToString
Nat
source
instance
instToStringPos
:
ToString
String.Pos
source
instance
instToStringInt
:
ToString
Int
source
instance
instToStringChar
:
ToString
Char
source
instance
instToStringFin
(n :
Nat
)
:
ToString
(
Fin
n
)
source
instance
instToStringUInt8
:
ToString
UInt8
source
instance
instToStringUInt16
:
ToString
UInt16
source
instance
instToStringUInt32
:
ToString
UInt32
source
instance
instToStringUInt64
:
ToString
UInt64
source
instance
instToStringUSize
:
ToString
USize
source
instance
instToStringFormat
:
ToString
Lean.Format
source
def
addParenHeuristic
(s :
String
)
:
String
Instances For
source
instance
instToStringOption
{α :
Type
u}
[
ToString
α
]
:
ToString
(
Option
α
)
source
instance
instToStringSum
{α :
Type
u}
{β :
Type
v}
[
ToString
α
]
[
ToString
β
]
:
ToString
(
α
⊕
β
)
source
instance
instToStringProd
{α :
Type
u}
{β :
Type
v}
[
ToString
α
]
[
ToString
β
]
:
ToString
(
α
×
β
)
source
instance
instToStringSigma
{α :
Type
u}
{β :
α
→
Type
v
}
[
ToString
α
]
[
(
x
:
α
) →
ToString
(
β
x
)
]
:
ToString
(
Sigma
β
)
source
instance
instToStringSubtype
{α :
Type
u}
{p :
α
→
Prop
}
[
ToString
α
]
:
ToString
(
Subtype
p
)
source
def
String
.
toInt?
(s :
String
)
:
Option
Int
Instances For
source
def
String
.
isInt
(s :
String
)
:
Bool
Instances For
source
def
String
.
toInt!
(s :
String
)
:
Int
Instances For
source
instance
instToStringExcept
{ε :
Type
u_1}
{α :
Type
u_2}
[
ToString
ε
]
[
ToString
α
]
:
ToString
(
Except
ε
α
)
source
instance
instReprExcept
{ε :
Type
u_1}
{α :
Type
u_2}
[
Repr
ε
]
[
Repr
α
]
:
Repr
(
Except
ε
α
)