Equations
- instToStringId_1 = inferInstanceAs (ToString α)
Equations
- instToStringString = { toString := fun (s : String) => s }
Equations
- instToStringPUnit = { toString := fun (x : PUnit) => "()" }
Equations
- instToStringUnit = { toString := fun (x : Unit) => "()" }
Equations
- instToStringNat = { toString := fun (n : Nat) => n.repr }
Equations
- instToStringInt = { toString := fun (x : Int) => match x with | Int.ofNat m => toString m | Int.negSucc m => "-" ++ toString m.succ }
Equations
- instToStringChar = { toString := fun (c : Char) => c.toString }
Equations
- instToStringFin n = { toString := fun (f : Fin n) => toString ↑f }
Equations
- instToStringUInt8 = { toString := fun (n : UInt8) => toString n.toNat }
Equations
- instToStringUInt32 = { toString := fun (n : UInt32) => toString n.toNat }
Equations
- instToStringFormat = { toString := fun (f : Lean.Format) => f.pretty }